- See also /tag/linux+windows
BSD, a cousin of Linux.
- Linux distributions
- Security > Computer security > Linux security
- Linux tools
Strongly tied with GNU software.
- Strong enough for there to be a
GNU/Linuxargument. An argument strong enough for me to want to side with just "Linux" by removing GNU software which has, for years, been abysmally-documented at best. It's better now, but the hate is still there.
- Strong enough for there to be a
- 1 What drove me to Linux
- 2 Some topics
- 3 Random old notes, tips and tricks
- 3.1 In X-Windows, using the keyboard instead of a mouse
- 3.2 KDE ~/.thumbnails directory
- 3.3 Display commandline characters properly
- 3.4 Setting the date and time
- 3.5 C compiler cannot create executables
- 3.6 Linux and Scroll Mice
- 3.7 adding to the path
- 3.8 Partitioning schemes
- 3.9 directory indexing
- 3.10 start a second x session
- 3.11 cannot connect to X server :0.0
- 3.12 run a command as root (using Pam)
- 3.13 Speed improvements
- 4 Reading and resources
- 5 Stuff
- 6 Randomness
What drove me to Linux ∞
What drove me away from Windows is its complete inability to back up and restore one's customizations. Since Windows has such broken defaults, I had to so heavily modify it that it took forever. None of it is (was?) scriptable and reproducible except through step-by-step instructions.
A fresh install required following the instructions step-by-step. Re-installing software from scratch, re-configuring everything and doing all kinds of fiddly nonsense. Plus, the better you get with it, the more customizations it required. It was disgusting.
This issue persists even now with Windows XP/Windows Vista. Although there are tools to do backup and restore I'm sure (for a price), I ended up sticking it out. As an aside, Windows has some interesting steady state concepts which I really liked, which kept the system writeable but reverted everything on reboot.
I always expected Linux to have a trivial ability to change menus and hotkeys at compile time, but I've been sadly disappointed. Maybe there's something somewhere in internationalization. Since I largely stopped compiling software it doesn't matter much these days.
Now I can set up all my software and trivially back up and restore everything. Heck, I can even remaster my setup into a customized LiveCD. With one command.
I'm also finally learning how to script to solve the issues I have.
All of the documentation I've seen for anything Linux-related SUCKS ASS. That's something I'm working to address.
Some topics ∞
A hell of a lot of Linux-related topics are scattered throughout this place, but here are some which don't really have much of a home:
Getting Linux going:
- Linux distributions
- Making a USB stick bootable
- Booting multiple distributions from a USB stick
- Linux distribution booting from a USB drive which has a Windows-viewable partition
- Resetting the Linux root password
Random old notes, tips and tricks ∞
I've had a long, long history with Linux and I've had to learn things the hard way. I took lots of notes, some of which are embarrassingly obvious years later, and some of which are obsolete by now. Still, here they all are.
wall-- Broadcast messages to all terminals
strip-- Discard symbols from object files.
- Startup commands are in
- Learn the kernel version with
permanently fix a video index:
mencoder -idx input.avi -ovc copy -oac copy -o output.avi
automatic inactivity logout:
- append to
/etc/profile. These are overridden by values in .profile (if not readonly)
export readonly TMOUT=600 (ksh) export readonly TIMEOUT=600 (bsh)
- append to
md5sum of a cd:
dd if=/dev/cdrom bs=2048 | md5sum
Set the current tty terminal to a certain size
resize -s 46 127
Ask before overwriting files.
- Run something from the shell which will persist even when the shell is closed.
- Set the title of the current terminal window
echo -e "\e]2;This is the new window title\a"
Appending to the path
Adjusting reserved blocks
- (tune2fs[doesn't exist])
tune2fs -m 1 /dev/hda10
You could create a dedicated file system with "-T largefile" or "-T largefile4" which will give you one inode for every one and four megabytes respectively. (untested)
In X-Windows, using the keyboard instead of a mouse ∞
Say you don't have a mouse, but you want to use X. Well, you can use X without a mouse..
You enable and disable it by hitting
control-shift-numberlock. The PC-speaker beeps.
Then you use the number pad to move around:
/ * - select mouse buttons: first, second, third in that order . 8 . becomes . up . 4 . 6 becomes left . right . 2 . becomes . down .
- Holding one of
8down and pressing number
5down speeds the mouse
5down on its own does a
mouse clickwith the current button.
+down on its own does a
double-clickwith the current button.
0clicks and holds down the current button.
.releases the button that
KDE ~/.thumbnails directory ∞
It's ok to delete the contents. Also see this script:
Display commandline characters properly ∞
(This is an older note from an older Slackware installation, and I don't know if it's accurate)
Make sure that extended characters are displayed properly at the commandline level:
set convert-meta off set input-meta on set output-meta on
Setting the date and time ∞
C compiler cannot create executables ∞
creating cache ./config.cache checking host system type... i686-pc-linux-gnulibc1 checking for gcc... gcc checking whether the C compiler (gcc ) works... no configure: error: installation or configuration problem: C compiler cannot create executables.
or otherwise get GNU libc installed, probably best done with a package specific to your distro and version
For PCLinuxOS it is:
apt-get install gcc-g++
alternatively, on Unity Linux I once got:
configure: error: C++ compiler cannot create executables
smart-root install gcc-g++
Later on, I solved it with
smart-root install gcc-c++
Linux and Scroll Mice ∞
Works under Slackware 10.0
# Enable the scroll wheel # Option "Protocol" "PS/2" Option "Protocol" "IMPS/2" Option "ZAxisMapping" "4 5"
adding to the path ∞
PATH="/usr/local/ActiveTcl/bin:$PATH" export PATH
Partitioning schemes ∞
I used to do things like this:
hda: 1 p ext3 8 (/boot?) 3 p fat16 500 5 l ext3 500 / rw,errors=remount-ro 6 l ext3 50 /var rw? 7 l ext3 50 /home rw? 8 l ext3 ~700 /tmp rw? 9 l ext3 1000 /usr rw? 10 l ext3 7000 /_archive rw,nosuid 11 l ext3 30000 /_mp3 rw,noexec,nosuid 2 p swap 200 (swap)
I don't have the security settings on me.. I think I mucked around briefly. Nothing special.
- 500MBs for
/may not be enough later, but it's reasonable for now.
nosuid, as some apps need it.
/homecould have been mixed in with
/archivebut I thought it would be cleaner to separate them. I may run out of room with a 1GB
/usrpartition, but it's okay for now.
/homepartition was made solely to appease certain strange circumstances. Under most circumstances I'll be symlinking out from that partition into another to provide more space where necessary.
/varholds logs, some keep this small to force awareness of runaway problems. Logs need to be rotated using a cron job.. I've been told that email and news goes here, which may be a bad thing, since I may need more space for news. Must confirm which apps use this space for news.
One can fix large archive partitions to use less inodes to not waste so much disk space.
directory indexing ∞
Directory indexing is a performance enhancement:
tune2fs -O dir_index /dev/x
To re-index existing directories (must not be mounted):
e2fsck -D -f /dev/x
TODO - How do I know if a partition is already indexed?
start a second x session ∞
startx -- :1 vt8
- could be done to have a root x-session for administration
- could have another user with other tools, or another window manager
- .. might be able to have the same user with a different window manager, but that would require some voodoo.
I do this trivially with my Devuan as of 2016-12-12
cannot connect to X server :0.0 ∞
SOMEEXECUTABLE: cannot connect to X server :0.0
.. revert with
run a command as root (using Pam) ∞
Tested 2009-04-26 on PCLinuxOS (version not recorded)
As root, do:
cd /usr/bin ln -s ../../usr/bin/consolehelper leafpad-root cp /etc/pam.d/synaptic /etc/pam.d/leafpad-root ln -s /usr/bin/leafpad /usr/sbin/leafpad-root
Now I can do interesting things with the new
For example, I could edit my Openbox
rc.xml and make a hotkey to edit a file as root.
<keybind key="A-S-F5"> <action name="Execute"> <command>leafpad-root /path/to/filename.ext</command> </action> </keybind>
Speed improvements ∞
Reading and resources ∞
- Man Wiki -- A wiki for the Linux
- http://setuplinux.com/ -- General help
- [http://www.oesf.org/index.php?title=Little_used%2C_but_useful_command_line_apps little used commandline apps]
- 20 of the Best Free Linux Books
Linux Cheat Sheet
- https://pdfbear.com/whylinuxisbetter [ 1 ] was http://www.whylinuxisbetter.net/
- https://www.howtoforge.com/ -- Docs
- https://www.kclug.org/old_archives/linux-activists/ - Linux-Activists mailing list archives -- from as old as 1991!
- http://www-106.ibm.com/developerworks/linux/library/l-fireboot.html?ca=dgr-lnxw09FireBoot -- Boot linux from a firewire device
USB devices ∞
- https://web.archive.org/web/20100405193502/http://www.simonf.com:80/usb/ -- Booting Linux from a USB device.
- https://web.archive.org/web/20090316070335/http://www.neowin.net:80/forum/lofiversion/index.php/t269145.html -- booting from USB without BIOS support.
- https://www.linuxjournal.com/article/6687 -- SanDisk ImageMate Dual Reader
- https://www2.cs.sfu.ca/~ggbaker/personal/cf-linux -- Using a USB Card Reader in Linux
http://www.oreillynet.com/pub/wlg/5735 -- Utility to make USB flash drives bootable
Physical backups ∞
This project is dead because I decided to continue with doing backups on secondary and tertiary hard drives.
- was EwL0G9wK8j4
timeis used to determine how long a command takes.
[ + ]