Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
New Debian 'Tutorial+Fun' Project (ForMe...
New Debian 'Tutorial+Fun' Project (ForMe...
...And other forum users similarly 'differently abled' in matters Debian/Linux, but mostly me..me, me, me-mememe,,,,me.). I have 243.92 GB of unallocated space on my Asus Notebook.
a) The Tutorial Part: I shall do a minimal install of Debian 8.1 with my #NetInstall usb (with the standard system utilities box checked during the install process..let us not get carried away..during this time i shal jump straight to 1.1.13. Play time of the Debian Reference https://www.debian.org/doc/manuals/debi ... ole_basics which i shall have open on my P4 desktop on which i have just upgraded to Linux Mint Rafaela 32 bit XFCE. Even though i have a bootloader (rEFind on my first partition), i'll make a 500 MB fat 32 partition with GParted first to install Debian's bootloader in UEFI mode. I shall report any problems if they arise during the installation and after it till i can get to my login screen, set permissions open and configure user accounts and and the steps taken to trouble-shoot them, then install MC commander, vim etc. The final stage would be to install OpenBox, configure it, preen it, maintain it till it is a trouble free and fully functional server, i can tell all i need to know about it and do whatever is within the scope of such a system, with it..
b ) The Fun Part: Pestering the expert forum members for help, exasperating them with the dummest questions and LargeThumbnail sized Screenshots, and this is the best part, asking them questions about any issues i might have with my newly upgraded Linux Mint Desktop. Other forum members, the differently abled linux-wise ones, are cordially invited to ask me to duplicate their issues if they have any or try out new stuff on my hardware within the scope of any stage of the project, at every stage.
It is hoped that this thread will somebody, after editing by the administrators, serve as the official forums.debian.net's "Debian-For-Dummies" manual..and i will get the Nobel peace prize for it.
a) The Tutorial Part: I shall do a minimal install of Debian 8.1 with my #NetInstall usb (with the standard system utilities box checked during the install process..let us not get carried away..during this time i shal jump straight to 1.1.13. Play time of the Debian Reference https://www.debian.org/doc/manuals/debi ... ole_basics which i shall have open on my P4 desktop on which i have just upgraded to Linux Mint Rafaela 32 bit XFCE. Even though i have a bootloader (rEFind on my first partition), i'll make a 500 MB fat 32 partition with GParted first to install Debian's bootloader in UEFI mode. I shall report any problems if they arise during the installation and after it till i can get to my login screen, set permissions open and configure user accounts and and the steps taken to trouble-shoot them, then install MC commander, vim etc. The final stage would be to install OpenBox, configure it, preen it, maintain it till it is a trouble free and fully functional server, i can tell all i need to know about it and do whatever is within the scope of such a system, with it..
b ) The Fun Part: Pestering the expert forum members for help, exasperating them with the dummest questions and LargeThumbnail sized Screenshots, and this is the best part, asking them questions about any issues i might have with my newly upgraded Linux Mint Desktop. Other forum members, the differently abled linux-wise ones, are cordially invited to ask me to duplicate their issues if they have any or try out new stuff on my hardware within the scope of any stage of the project, at every stage.
It is hoped that this thread will somebody, after editing by the administrators, serve as the official forums.debian.net's "Debian-For-Dummies" manual..and i will get the Nobel peace prize for it.
Linux User #481272 Reg: 15th Sept., 2008
Re: New Debian 'Tutorial+Fun' Project (ForMe...
Quite a nice idea!mzsade wrote:I have 243.92 GB of unallocated space on my Asus Notebook.
b ) The Fun Part: ...cordially invited to ask me to duplicate their issues if they have any or try out new stuff on my hardware within the scope of any stage of the project, at every stage.
It is hoped that this thread will somebody, after editing by the administrators, serve as the official forums.debian.net's "Debian-For-Dummies" manual..and i will get the Nobel peace prize for it.
I think this should not be Off topic, but in the Docs, Howtos, Tips & Tricks area.
Mzsade, would you really like to experiment? If you are, I'd write up something--I tried it with good results, but don't know how it'd work with others--not right away,but in a few days.
Good luck with your idea!
Re: New Debian 'Tutorial+Fun' Project (ForMe...
Thanks Deshpriya, finally! Installation was successful after i 'unchecked' standard system utilities, and finally a server mirror in Vietnam accepted my requests for the apt packages. Managed to create a user account with administrative privileges ( , hmm Warning, yada yada, Unix file basics, bada bing, bada boom Filesystem permissions..Named pipes..Sockets..Device files, procfs and sysfs../etc/sysctl.conf..at this point i would like to know if this is correct for a purely systemd initialized and systemctl controlled system (if such option exists). Did an apt-get update, installed mc vim gpm. Rebooted and successfully logged into my user account, rEFind is a delight, saw both, the fat32 /bootpartition and the /root partition, wish i could take a screenshot. And at this point i don't know how to edit system files without a text editor so i am done for today. Will begin tomorrow with and see how it goes. All kind of input from forum members between now and then will be highly appreciated and fully explored before that. Thanks
Bookmarked this page for future reference tho' not applicable to this system [No Windows partition]: http://forums.debian.net/viewtopic.php?f=30&t=123894
On an unrelated note, Linux Mint Isadora Mate on my desktop is still more responsive and lighter and boots faster than the latest Lint Mint Rafaela XFCE RC on the same PC.
Code: Select all
# echo "penguin ALL=(ALL) ALL" >> /etc/sudoers
Code: Select all
$ mc
Bookmarked this page for future reference tho' not applicable to this system [No Windows partition]: http://forums.debian.net/viewtopic.php?f=30&t=123894
On an unrelated note, Linux Mint Isadora Mate on my desktop is still more responsive and lighter and boots faster than the latest Lint Mint Rafaela XFCE RC on the same PC.
Linux User #481272 Reg: 15th Sept., 2008
Re: New Debian 'Tutorial+Fun' Project (ForMe...
. What the hell am i talking about, i am an idiot, don't even need mc or vim right now.And at this point i don't know how to edit system files without a text editor...
Code: Select all
$ [ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
EFI boot on HDD
$ echo "EFI boot on HDD" > output.txt
$ ls
output.txt
$ cat output.txt
EFI boot on HDD
$ cat /proc/1/comm
systemd
Linux User #481272 Reg: 15th Sept., 2008
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: New Debian 'Tutorial+Fun' Project (ForMe...
Don't do that!mzsade wrote:Code: Select all
# echo "penguin ALL=(ALL) ALL" >> /etc/sudoers
Always use:
Code: Select all
# visudo
Set the editor to be used in your shell configuration file, for example:
Code: Select all
export EDITOR="ed"
export VISUAL="ed"
deadbang
Re: New Debian 'Tutorial+Fun' Project (ForMe...
Thanks, will keep that in mind, and get some vi/vim lessons too.Head_on_a_Stick wrote:Don't do that!mzsade wrote:Code: Select all
# echo "penguin ALL=(ALL) ALL" >> /etc/sudoers
Always use:The syntax is checked before saving with this method.Code: Select all
# visudo
Set the editor to be used in your shell configuration file, for example:Code: Select all
export EDITOR="ed" export VISUAL="ed"
Forgot to mention the effect of the installation on other partitions, swap uuid changed. Noticed that when my Debian xfce partition booted with "...a start job is running..." , without rEFind i don't think it'd have booted at all. Did a blkid, then checked /etc/fstab of all the other partitions and changed the swap UUID in all of them.
Linux User #481272 Reg: 15th Sept., 2008
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: New Debian 'Tutorial+Fun' Project (ForMe...
If the distribution uses systemd, just delete the swap line from /etc/fstab and let systemd mount it automatically.mzsade wrote:swap uuid changed
Otherwise, use the PARTUUID rather than the UUID in /etc/fstab (this will not change when new distributions reformat the swap partition).
deadbang
Re: New Debian 'Tutorial+Fun' Project (ForMe...
Thanks HOAS, Can't seem to get anything right, that's 2 mistakes already. To summarize for the uninitiated:
If you are giving administrative privileges to the user you have already created during installation (assuming you have already installed sudo):
Edit: I will be keeping myself busy poking around the bare system with this; http://linuxcommand.org/lc3_learning_the_shell.php until i feel ready to move on to the next stage. Meanwhile any questions on installation up to this stage would be welcome. I would also be very grateful if somebody would parse this command i used to detect if my system was booting in EFI or Legacy boot mode, in detail:
How to use visudo: http://www.unixtutorial.org/2014/07/how-to-use-visudo/Head_on_a_Stick wrote:Don't do that!mzsade wrote:Code: Select all
# echo "penguin ALL=(ALL) ALL" >> /etc/sudoers
Always use:The syntax is checked before saving with this method.Code: Select all
# visudo
Set the editor to be used in your shell configuration file, for example:Code: Select all
export EDITOR="ed" export VISUAL="ed"
If you are giving administrative privileges to the user you have already created during installation (assuming you have already installed sudo):
Just add the user to the sudo group:
# adduser <username> sudo
The change will take effect the next time the user logs in.
This works because /etc/sudoers is pre-configured to grant permissions to all members of this group (You should not have to make any changes to this):
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
Not clear about how to "use the PARTUUID rather than the UUID".Head_on_a_Stick wrote:If the distribution uses systemd, just delete the swap line from /etc/fstab and let systemd mount it automatically.mzsade wrote:swap uuid changed
Otherwise, use the PARTUUID rather than the UUID in /etc/fstab (this will not change when new distributions reformat the swap partition).
Edit: I will be keeping myself busy poking around the bare system with this; http://linuxcommand.org/lc3_learning_the_shell.php until i feel ready to move on to the next stage. Meanwhile any questions on installation up to this stage would be welcome. I would also be very grateful if somebody would parse this command i used to detect if my system was booting in EFI or Legacy boot mode, in detail:
Code: Select all
[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
Linux User #481272 Reg: 15th Sept., 2008
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: New Debian 'Tutorial+Fun' Project (ForMe...
Look at the output of:mzsade wrote:Not clear about how to "use the PARTUUID rather than the UUID".
Code: Select all
# blkid
All the script is doing is checking for the presence of a /sys/firmware/efi folder (this is only created if booted with UEFI) -- you could just do this yourself.
deadbang
Re: New Debian 'Tutorial+Fun' Project (ForMe...
As of now, this is my limited grasp of the Bash syntax;
Command [hyphen Option/s] [Argument].
This is what i wished to understand;
If [ -d /sys/firmware/efi ] is the string that does that which output is then piped twice with &&,
a) Why a space before "-d" and after "../../efi", is that the rule?
b) What is "d" (option or command) and what is the hyphen before it?
c) Why not grep? Are there any other intances of this "d" usage?
d) How do i write the combined output of the whole command including the conditional onto a text file.
What am i doing wrong here?
Command [hyphen Option/s] [Argument].
This is what i wished to understand;
If [ -d /sys/firmware/efi ] is the string that does that which output is then piped twice with &&,
a) Why a space before "-d" and after "../../efi", is that the rule?
b) What is "d" (option or command) and what is the hyphen before it?
c) Why not grep? Are there any other intances of this "d" usage?
d) How do i write the combined output of the whole command including the conditional onto a text file.
What am i doing wrong here?
Code: Select all
~$ [ -d /sys/firmware/efi ] && echo "Legacy" || echo "Efi"
Legacy
~$ [ -d /sys/firmware/efi ] && echo "Efi" || echo "Legacy"
Efi
~$ [ -d /sys/firmware/efi ] | echo "Legacy" | echo "Efi"
Efi
~$ [ -d /sys/firmware/efi ] | echo "Efi | echo "Legacy"
Legacy
~$ [ -d /sys/firmware/efi ] | echo "Legacy"
Legacy
~$ [ -d /sys/firmware/efi ] | echo 'Efi"
Efi
~$ [ -d /sys/firmware/efi ] | echo "Legacy" | echo "Efi" && echo > output.txt
Efi
~$ cat output.txt
~$ ls
blender-2.75a-linux-glibc211-x86_64 Fstab_Mate output.txt temp
Desktop Fstab_xfce Pictures Templates
Documents Mail Public Videos
Downloads Music run.py
~$ [ -d /sys/firmware/efi ] | echo "Legacy" | echo "Efi" | echo > output.txt
~$ cat output.txt
~$ rm output.txt
~$ [ [ -d /sys/firmware/efi ] | echo "Legacy" | echo "Efi" ] | echo > output.txt
bash: [: -d: binary operator expected
~$ [ -d /sys/firmware/efi ] | && echo "Legacy" ||| echo "Efi" echo > output.txt
bash: syntax error near unexpected token `&&'
~$ [ -d /sys/firmware/efi ] && echo "Legacy" ||| echo "Efi" echo > output.txt
bash: syntax error near unexpected token `|'
~$ [ -d /sys/firmware/efi ] && echo "Legacy" || echo "Efi" | echo >> output.txt
Legacy
~$ cat output.txt
~$ ls
blender-2.75a-linux-glibc211-x86_64 Fstab_Mate output.txt temp
Desktop Fstab_xfce Pictures Templates
Documents Mail Public Videos
Downloads Music run.py
~$ [ -d /sys/firmware/efi ] && echo "Legacy" || echo "Efi"
Legacy
~$ [ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
EFI boot on HDD
~$ [ -d /sys/firmware/efi ] && echo "Legacy boot on HDD" || echo "EFI boot on HDD"
Legacy boot on HDD
~$ [ -d /sys/firmware/efi ] | echo "Legacy boot on HDD" | echo "EFI boot on HDD"
EFI boot on HDD
m@Sinai:~$ [ -d /sys/firmware/efi ] | echo "EFI boot on HDD" | echo "Legacy boot on HDD"
Legacy boot on HDD
~$ [[ -d /sys/firmware/efi ] | echo "EFI boot on HDD" | echo "Legacy boot on HDD" ] echo >> output.txt
bash: syntax error in conditional expression
bash: syntax error near `]'
~$ [[ -d /sys/firmware/efi ] | echo "EFI boot on HDD" | echo "Legacy boot on HDD" ] | echo >> output.txt
bash: syntax error in conditional expression
bash: syntax error near `]'
~$ [ [ -d /sys/firmware/efi ] | echo "EFI boot on HDD" | echo "Legacy boot on HDD" ] | echo >> output.txt
bash: [: -d: binary operator expected
Last edited by mzsade on 2015-08-01 05:49, edited 1 time in total.
Linux User #481272 Reg: 15th Sept., 2008
- dilberts_left_nut
- Administrator
- Posts: 5347
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 13 times
- Been thanked: 66 times
Re: New Debian 'Tutorial+Fun' Project (ForMe...
I would have liked very much not to have dignified that evasive stock-in-trade BS with a reply but i can't help myself.dilberts_left_nut wrote:https://www.gnu.org/software/bash/manual/
Even if all the answers can be found in that, the least you can do is have the decency to point to the pages/sections that lead precisely to the answers i seek or as the idiom goes.."keep your piehole shut".
Linux User #481272 Reg: 15th Sept., 2008
- dilberts_left_nut
- Administrator
- Posts: 5347
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 13 times
- Been thanked: 66 times
Re: New Debian 'Tutorial+Fun' Project (ForMe...
The problem being that unless you have some basic general understanding of the concepts and use of syntax (which, given your questions, you clearly don't) then it is pointless answering your questions directly, without basically retyping the manual that I linked.
Do yourself a favour and invest an hour or so reading over that, it will save you lots of time in the long run.
Do yourself a favour and invest an hour or so reading over that, it will save you lots of time in the long run.
AdrianTM wrote:There's no hacker in my grandma...
Re: New Debian 'Tutorial+Fun' Project (ForMe...
+1dilberts_left_nut wrote:The problem being that unless you have some basic general understanding of the concepts and use of syntax (which, given your questions, you clearly don't) then it is pointless answering your questions directly, without basically retyping the manual that I linked.
Do yourself a favour and invest an hour or so reading over that, it will save you lots of time in the long run.
As i said before, i am fully aware of this, not ready to move on to the next stage and finding the bash reference manual too much for my feeble intellect am practicing basic linux commands from William Shott's book. Meanwhile, even if it does not hasten my progress, it'll do no harm to tell me;
whether "d" is a command or an option, give me a couple of other instances of it at work,
why [ -d /sys/firmware/efi ] && echo "Legacy boot on HDD" || echo "EFI boot on HDD"
gives me "Legacy boot on HDD"
while
[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
gives me "EFI boot on HDD"
To my untrained eyes the command seems to be doing nothing here and only the echo command is 'echoing' the string that comes first.
Linux User #481272 Reg: 15th Sept., 2008
- dilberts_left_nut
- Administrator
- Posts: 5347
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 13 times
- Been thanked: 66 times
Re: New Debian 'Tutorial+Fun' Project (ForMe...
Thank you! i am none the wiser for it, except that i now vaguely know that -d is a conditional test for a file which is True if it is a directory. My chafing curiosity satisfied, i am happy to go back to things simpler and my slogging.
Linux User #481272 Reg: 15th Sept., 2008
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: New Debian 'Tutorial+Fun' Project (ForMe...
I like this BASH guide:
http://mywiki.wooledge.org/BashGuide
This bit explains the "&&" and "||" control operators in your script:
http://mywiki.wooledge.org/BashGuide/Te ... _.7C.7C.29
http://mywiki.wooledge.org/BashGuide
This bit explains the "&&" and "||" control operators in your script:
http://mywiki.wooledge.org/BashGuide/Te ... _.7C.7C.29
deadbang
Re: New Debian 'Tutorial+Fun' Project (ForMe...
Thank you, baby steps but it's so fulfilling seeing the whole picture, tests if the directory exists AND if it returns True echoes the first string regardless of what it is, OR echoes the second string only if the test fails. IMHO the first string should be superfluous for whosoever knowingly uses the command, it should be just .
Edit: Anyways, 'em's one echo too many, it could even be
Code: Select all
[ -d /sys/firmware/efi ] && echo "EFI..." || echo "Legacy..."
Code: Select all
~ $ [ -d /sys/firmware/efi ] || echo "Legacy boot on HDD"
Edit: Anyways, 'em's one echo too many, it could even be
Code: Select all
~$ [ -d /sys/firmware/efi ] && echo "Don't Worry Be Happy"
Linux User #481272 Reg: 15th Sept., 2008
Re: New Debian 'Tutorial+Fun' Project (ForMe...
Howdy, i return to my topic humbly, after making a complete ass of myself, older (by at least 2 gray hairs, i bet) and just a little bit wiser, i hope. This is my configuration with standalone Openbox on a minimal Debian install which is half of what i'd set out as a goal.
Screenshot:http://i.imgur.com/w0mKj6F.png Note that i am using under 300 MB of memory despite iceweasel running with 4 tabs open.
I also have restored my LMDE partition with fsarchiver and will shortly boot into it, and save this partition with the same. We will then look at my partition table and see where we can reinstall this partition and arrive at this configuration from a minimal Debian Netinstall from step one onwards. I shall provvide Screenshots whenever i can during the whole process. My set preferences of this install are:
File Manager - xfe (supplemented by pmount, usbmount)
Text Editors - vim, leafpad
Terminal Emulators - Default (xterm)
Browsers - w3m iceweasel
No Desktop environment, no display manager, and autologin set (This is the USP of my install, thanks to @Head_On_A_Stick)
Let us then boot into my LMDE mate partition.
My modified OpenBox Menu: http://i.imgur.com/dR2nL7x.png
It is hoped that this will save the newbie who wishes to have a minimal system with the most common conveniences set up, up and running asap, some amount of heartburn and trial and error.
Screenshot:http://i.imgur.com/w0mKj6F.png Note that i am using under 300 MB of memory despite iceweasel running with 4 tabs open.
I also have restored my LMDE partition with fsarchiver and will shortly boot into it, and save this partition with the same. We will then look at my partition table and see where we can reinstall this partition and arrive at this configuration from a minimal Debian Netinstall from step one onwards. I shall provvide Screenshots whenever i can during the whole process. My set preferences of this install are:
File Manager - xfe (supplemented by pmount, usbmount)
Text Editors - vim, leafpad
Terminal Emulators - Default (xterm)
Browsers - w3m iceweasel
No Desktop environment, no display manager, and autologin set (This is the USP of my install, thanks to @Head_On_A_Stick)
Let us then boot into my LMDE mate partition.
My modified OpenBox Menu: http://i.imgur.com/dR2nL7x.png
It is hoped that this will save the newbie who wishes to have a minimal system with the most common conveniences set up, up and running asap, some amount of heartburn and trial and error.
Linux User #481272 Reg: 15th Sept., 2008
Re: New Debian 'Tutorial+Fun' Project (ForMe...
I am now booting from what truly feels like "the lap of luxury", everything is set up for me, the sound, codecs, the flash, and here i am effortlessly cruising at the cost of what, a few extra hundred MBs of physical memory? Is it really worth all the trouble. Nah, i don't think so, i am happy with i got running. in between when i last posted and now, i have installed and uninstalled reFind, upgraded to Stretch and then downgraded back to Jessie because kernel 4.1.0-1 didn't let me boot, i was doing fine with just sudo installed but then i had to go and install gksu because of some harmless Gtk dialog message i'd get with a certain event in synaptic. Now i get a prompt for password whenever i perform any administrative task, which is a good thing i suppose if you intend to use your system as a server or at work. Upgrading and then downgrading has also messed up my autologin, i have to enter my user name and password after every boot.. .
But as i said, i am happy with what i got and if someone thinks my reinstalling and recounting the steps will be of any help and my configuration seems attractive enough, do let me know and we will have a go at it in real time. Meanwhile i am going to backup my present Debian partition, with all it's warts using fsarchiver, awesome, awesome tool.
http://imgur.com/9QKF8UN
But as i said, i am happy with what i got and if someone thinks my reinstalling and recounting the steps will be of any help and my configuration seems attractive enough, do let me know and we will have a go at it in real time. Meanwhile i am going to backup my present Debian partition, with all it's warts using fsarchiver, awesome, awesome tool.
http://imgur.com/9QKF8UN
Linux User #481272 Reg: 15th Sept., 2008