Badges

Types

Formats

Show Only

ArchLinux Pacman Package Manager
https://mreschke.com/137/archlinux-pacman-package-manager
is the package manager application used by . Pacmans config file is located at /etc/pacman.conf. Pacman uses different repositories of files. These repos can be added to your system through the pacman.conf. By default, pacman uses 3 repos; core, extra and community. There are a lot of mirrors for pacman across the globe, pacman uses the /etc/pacman.d/mirrorlist file to determine which mirrors to use. The speed of pacman greatly depends on which mirrors you choose. Pacman uses wget by...
|
post #137 by mreschke Feb 23rd 2009 (7303 views)
ERPNext on Manjaro
https://mreschke.com/380/erpnext-on-manjaro
How to get frappe and ERPNext up and running locally on your ArchLinux Manjaro machine This is actually fully untested and from memory only. pyenv is a python version manager that lets you have multiple versions of python on the same system. Need to have pyenv successfully working on your lapbop See https:github.com/pyenv/pyenv Take note of all the ~/.bashrc stuff you have to add There is a pacman version, but its broken, simply use github Once properly installed and you can run the `pyen...
|
post #380 by mreschke Mar 31st 2020 (1241 views)
Burn CD/DVD and ISO Images in Linux
https://mreschke.com/126/burn-cd-dvd-and-iso-images-in-linux
k3b uses this command /usr/bin/growisofs -Z /dev/sr1=/dev/fd/0 -use-the-force-luke=notray -use-the-force-luke=tty -use-the-force-luke=4gms -use-the-force-luke=tracksize:331264 -use-the-force-luke=dao:331264 -dvd-compat -speed=8 -use-the-force-luke=bufsize:32m wodim cdrecord (old, use wodim)... http:www.walkernews.net/2008/07/06/how-to-create-iso-image-of-directory-or-filesystem-in-linux/ For example, to dump the content of /home/user directory into a standard CD ISO-9660 filesystem i...
|
post #126 by mreschke Feb 9th 2009 (5206 views)
Awk Command
https://mreschke.com/225/awk-command
See also and Awk is a very powerfull line editor filter or small programming language available in all unix style operating systems. This page contains small tutorial awk scripts and snippets. Columns are automatically assigned $1 - $n. And $0 is the entire line Awk has some built in functions: gsub(r,s) globally replaces r with s within the line ($0) index(s,t) returns first position of string t in s (or 0 if not present) length(s) returns the number of characters in s match(s,r...
|
post #225 by mreschke Dec 4th 2010 (6651 views)
Linux Primer
https://mreschke.com/331/linux-primer
Linux itself is not an operating system. For simplicity, we use the word Linux to describe the entire operating system as a whole, but it is important to know this is not technically correct. Linux is only the kernel code (main brain) itself, written by Linus Torvalds. A kernel alone is useless, it needs a thousand other tools and applications to form an operating system. A Linux distribution is a Linux kernel with a ton of other software packages and pieces created by many other people...
|
post #331 by mreschke Jun 12th 2014 (1825 views)
VIM
https://mreschke.com/88/vim
manup install vimrc ,m toggle line number column ,f toggle fold column ,q close current window ,Q close current buffer ,d yank line without adding to the yanked stack ,v reselect text that was just pasted :w!! write as sudo ,ev edit vimrc file Tab jump to marching brackets / search K search for highlighted word ,/ clear search highlights ,z put highlighted word in search/replace box za fold i enter insert mo...
|
post #88 by mreschke Jul 22nd 2008 (3999 views)
qLinux Debian Xmonad
https://mreschke.com/318/qlinux-debian-xmonad
Login as root _ cat > /etc/apt/sources.list /etc/apt/apt.conf.d/99translations apt-get update apt-get upgrade apt-get install sudo #Run visudo and add your user: yourmainuser ALL=(ALL) NOPASSWD: ALL #Logout of root (type exit) and login as yourmainuser _ sudo apt-get install openssh-server rsync curl vim htop iotop multitail nmap kpartx parted smartmontools hdparm ntfsprogs sysstat ntp ntpdate bridge-utils ethtool ifenslave-2.6 python nfs-common nfs-kernel-server unzip unrar ssh...
|
post #318 by mreschke Oct 11th 2013 (2123 views)
LFS 7.0 System
https://mreschke.com/282/lfs-70-system
Build and enhance my first LFS 7.0 custom Linux distribution :r: :r: :r: :r: You should turn your LFS build into a LiveCD, then use that CD as the installer!!! http:www.linuxfromscratch.org/hints/downloads/files/boot-cd_easy.txt http:www.linux-live.org/ http:www.culmination.org/Mike/2.6-udev-nptl-bootcd.txt Installer packages http:wiki.debian.org/DebianInstaller http:fedoraproject.org/wiki/Anaconda LC_ALL=POSIX I have successfully built LFS 7.0 i686 on my 2011 qdes...
|
post #282 by mreschke Jan 14th 2012 (6323 views)
SOAP and PHP
https://mreschke.com/278/soap-and-php
<p>Learn how to connect to an an PHP/SOAP or ASP.NET/SOAP web service with PHP and how to create a PHP SOAP web service (server)</p>
|
post #278 by mreschke Nov 16th 2011 (6786 views)
Ubuntu End of Life and Upgrades
https://mreschke.com/254/ubuntu-end-of-life-and-upgrades
<p>This topic helps with two things. One is to upgrade an old Ubuntu release to a new release, and by old I mean one that is no longer supported. Keep in mind that if say 9.04 is unsupported, but 9.10 is still supported, you can simply do the <tt>do-release-update</tt>. This doc helps when both 9.04 and 9.10 and above are EOL (end of life). Second is to maintain the use of an old Ubuntu distro even after its repositories stop working. Basically if you don't install the LTS (Long Term Support) release of Ubuntu then your distro is only supported for about a year. After that year all your repositories (using apt-get) fail and cannot be found. <strong>This is because Ubuntu archives the old repositories to a different URL.</strong> You don't actually have to upgrade your old Ubuntu distro, and you can continue to use it and its repos, you just have to switch to the new repo URL's. See below.</p>
|
post #254 by mreschke Jun 8th 2011 (9798 views)
Set Date Time in Linux
https://mreschke.com/253/set-date-time-in-linux
I need to adjust the date and time in linux quite often and sometimes its a pain to google the correct procedure of hardware clock and system clock. So here it is. This will change both your system clock and hardware clock together sudo date -s "7 JUN 2011 12:44:00"; sudo hwclock --systohc Show System Clock date Show Hardware Clock sudo hwclock --show Change System Clock sudo date -s "2 OCT 2006 18:00:00" Set Hardware Clock from System Clock sudo hwclock --systohc Set System Clock from Hardware...
|
post #253 by mreschke Jun 7th 2011 (3470 views)
Android Development
https://mreschke.com/237/android-development
Easy install is to add to your /etc/pacman.conf file then through aur install android-sdk sudo pacman -S jdk eclipse sudo yaourt -S android-sdk Note, the android-sdk is in the AUR, which is why I use yaourt Add /opt/android-sdk/tools if not already added by installer in /etc/profile and logout and back in or restart Run eclipse Install the WST Server Adapters In eclipse, Help->Install New Software Select the 'Helios - http:download.eclipse.org/releases/helios' item from the 'Work With:' dropdow...
|
post #237 by mreschke Feb 26th 2011 (8457 views)
Sed Command
https://mreschke.com/226/sed-command
See Also and Replace all occurrence's in a file (and write back to the same file) sed -i "s/this/withthis/g" /tmp/somefile Replace output newline (carriage return) with sed ':a;N;$!ba;s/\n/ /g' emailbody="Your Directory`/bin/ls -Rhal $yourdir|sed ':a;N;$!ba;s/\ng'`"
|
post #226 by mreschke Dec 6th 2010 (3095 views)
qLinux ArchLinux KDE4 Development
https://mreschke.com/223/qlinux-archlinux-kde4-development
= :related: Related Topics :r: :r: :r: :r: This is the development topic for my custom ArchLinux KDE4 Distro. The public install page is Add to installer, screen command with my ~/.screenrc If you want to customize the overlay and upload it for all new installs, follow these steps. For creator only, passwords required Install the latest fresh qLinux ArchLinux KDE4 distro Become root su for all commands below mkdir /mrch, should be owned by root:root cd /mrch then wget http:mreschke.com/files/18...
|
post #223 by mreschke Dec 1st 2010 (4978 views)
Rute Users Tutorial and Exposition
https://mreschke.com/222/rute-users-tutorial-and-exposition
**An incredible linux administrators guide thanks to Linux Format Magazine (LXF Issue 138).** You can download the entire guide here [http://mreschke.com/files/222/rute-html-1.0.0.tar.bz2 rute-html-1.0.0.tar.bz2] Or read the full guide on my site by [local:/files/222/index.html clicking here!] [[image files/222/cover5.jpg link="222/index.html"]]
|
post #222 by mreschke Nov 26th 2010 (3720 views)
Linux Wifi
https://mreschke.com/196/linux-wifi
Install the Intel Corporation PRO/Wireless 2200BG on linux http:wiki.debian.org/ipw2200 http:wiki.debian.org/WiFi/HowToUse Wicd for XFCE is an awesome wifi manager sudo apt-get install wicd /etc/init.d/wicd start wicd-client -n &
|
post #196 by mreschke Jul 12th 2010 (2722 views)
Python Tutorial
https://mreschke.com/195/python-tutorial
django installation on ubuntu server using WSGI http:blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/ works great! Great Tutorials http:code.google.com/edu/ and http:code.google.com/edu/languages/google-python-class/set-up.html #!/usr/bin/env python Tuples (like lists but immutable) mytuple = (1, 2, 'three') print len(mytuple) print mytuple #tuple = 'hi' #error, immutable def Foo(): tuple = ('one', 'two') return tuple test = Foo() print test (one, two)...
|
post #195 by mreschke Jul 9th 2010 (5290 views)
Copy Remote FS with DD
https://mreschke.com/187/copy-remote-fs-with-dd
How to copy a partition using dd, to a remove partition with netcat. Awesome! http:alma.ch/blogs/bahut/2005/02/wonders-of-dd-and-netcat-cloning-os.html I found this here http:www.linuxquestions.org/questions/linux-software-2/using-dd-copy-image-file-remote-system-800595/
|
post #187 by mreschke Apr 7th 2010 (3351 views)
qLinux ArchLinux
https://mreschke.com/184/qlinux-archlinux
= KDE4 Version = :related: Related Topics :r: :r: :r: :r: :r: These are my custom linux distributions based on Arch Linux. I have built several different flavors. See below for version descriptions and how to install them. All versions can be install for i686 (32bit) or amb64 (64bit). If you install using the i686 live cd, it installs i686, if you install using the amd64 live cd, it installs amd64. Do NOT install these distros. These are personal distros, very rough installer, can easily ruin y...
|
post #184 by mreschke Mar 5th 2010 (5770 views)
Linux Training
https://mreschke.com/182/linux-training
(Base System, Directory Layout, Everything's a file) This is a series of Linux/GNU tutorials which will be held live via Google Wave. The purpose of these tutorials is to help my new Linux friends become familiar with the Linux command line (bash). We will cover basic topics such as installing linux, multiboot setups and partitioning, basic and advanced command line, shell scripting (bash/perl), SSH/Webmin/VNC/FreeNX remote administration, network administration, and web server administration,...
|
post #182 by mreschke Feb 11th 2010 (4423 views)
Linux Training Session 01
https://mreschke.com/181/linux-training-session-01
Back to Part one will be held live on Google Wave Thursday 2010-02-17 at 10PM CST Base System Directory Layout & What/Where everything is Everything is a file (real or fake file) About 1 hour or so of time A ready mind; study, memorize, experiment, retain. An installed, working Linux OS (you can use Mac OS or BSD too, just use the bash shell, and know some parameters will be different) Internet connection (duh) with your Linux browser open Bash shell open and ready to experiment along with me o...
|
post #181 by mreschke Feb 11th 2010 (4952 views)
Respin Your Own Linux Distro
https://mreschke.com/179/respin-your-own-linux-distro
Awesome ubuntu respins (wow, this is what I have been looking for forever, its perfect) https:help.ubuntu.com/community/LiveCDCustomization Nice ubuntu remaster, notice how they copy certain home folders to /etc/skel http:crunchbanglinux.org/forums/topic/2859/remastersys-guide-create-your-own-ubuntubased-distro/ http:en.wikipedia.org/wiki/List_of_remastering_software remastersys (debian ubuntu) systemimager (any?) kickstart (Red Had/Fedora/Centos) remasterme (PCLinuxOS) Mount an ISO, then chroo...
|
post #179 by mreschke Jan 28th 2010 (6064 views)
Embedded Linux
https://mreschke.com/158/embedded-linux
See my and http:www.linuxfordevices.com/c/s/Linux-For-Devices-Articles/ http:www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Tutorial-A-simple-embedded-Linux-system/ http:www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Tutorial-Building-an-embedded-Linux-system-with-a-web-server/ http:www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Tutorial-A-web-kiosk-embedded-system/ http:www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Tutorial-An-ARMbased-web-kiosk-system/ http:ww...
|
post #158 by mreschke Oct 5th 2009 (5339 views)
Palm Zire72 Linux
https://mreschke.com/156/palm-zire72-linux
My Attempts to get my own compiled kernel to boot on my Palm Zire72 I am currently trying to build a simple busybox system for i386 using Buildroot http:buildroot.uclibc.org/buildroot.html It's compiling now, been going for about 15 minutes on my Athlon X2 2GHz I am also testing Scratchbox http:www.scratchbox.org/documentation/user/scratchbox-1.0/html/tutorial.html Followed http:buildroot.uclibc.org/buildroot.html and it took about 20 minutes on my Athlon X2 2Ghz. I basically just built it with...
|
post #156 by mreschke Sep 29th 2009 (3264 views)
Repair Corrupt InnoDB Tables
https://mreschke.com/148/repair-corrupt-innodb-tables
Repair a MySQL InnoDB database table corrupted by a power outage = :related: Related Topics :r: I have a linux server built from a standard dell workstation. 1 500g sata II drive, core 2 duo, 1g ram. It is running Ubuntu server 8.04 with mysql (InnoDB tables), php, apache, and Zabbix. The primary role of this server is to monitor our other production servers using an open source monitoring application called Zabbix. We had a large electrical/tornado storm one day and power went out to the zabbi...
|
post #148 by mreschke Jun 18th 2009 (11826 views)
ArchLinux
https://mreschke.com/136/archlinux
Related Topics https:wiki.archlinux.org/index.php/Daemon If you use HAL, start dbus before hal, even though hal will start dbus and acpid, explicitly add dbus before hal anyway Do not background dbus Do not background anything you need immediately DAEMONS=(syslog-ng gensplash dbus hal network netfs @avahi-daemon @samba @crond @openntpd @cups @mpd) I like @syslog-ng network @netfs dbus @hal @crond kdm The default base install is syslog-ng network netfs crond Installation Guid at http:wiki.archli...
|
post #136 by mreschke Feb 23rd 2009 (5720 views)
Compiling the Linux Kernel
https://mreschke.com/135/compiling-the-linux-kernel
http:www.cyberciti.biz/tips/compiling-linux-kernel-26.html After building my first LFS system, I realized the LFS project has great kernel docs See http:www.linuxfromscratch.org/lfs/view/stable/chapter08/kernel.html which really points to this great doc http:www.linuxfromscratch.org/hints/downloads/files/kernel-configuration.txt Note unless in a chroot like in LFS, just use make menuconfig instead of all the LANG stuff apt-get install build-essential libncurses5-dev Download and extract kernel...
|
post #135 by mreschke Feb 23rd 2009 (3998 views)
Linux Find Command
https://mreschke.com/132/linux-find-command
Ten usefull commands for FIND http:www.go2linux.org/usages-examples-of-find-command find ./ -name "*.mp3" this is casesensative find ./ -iname "*.mp3" this one is case-insensative find / -type d -print (to list only directories) find / -type l -print (to list only soft links) find / -type b -print (to list only bliock special files) find / -type f -print (to list only regular files)' find ./ -not -iname *.mp3 -not -iname *.jpg -not -iname *.jpeg like to find all junk thats not music or music re...
|
post #132 by mreschke Feb 17th 2009 (2934 views)
Virtualbox in Linux
https://mreschke.com/131/virtualbox-in-linux
See When you get say, Windows XP setup in your VirtualBox virtual machine, you can easily forward ports from the Host OS, to the Guest OS. An example, I want to use the windows Remote Desktop to remote into my virtual XP installation. I open port 3389 on my router to point to my ubuntu desktop, then I forward that port into my guest OS. List vms: VBoxManage list vms List Extra Data (port forwards): VBoxManage getextradata xpserver enumerate To forward to a machine http:ubuntuforums.org/showthre...
|
post #131 by mreschke Feb 11th 2009 (3241 views)
Linux Bootdisk
https://mreschke.com/130/linux-bootdisk
Would really like to learn more about embedded linux. Found an incredible website about Bootdisks and the boot process at http:www.tldp.org/HOWTO/Bootdisk-HOWTO which will be a good start. Later I will tackle Linux from Stratch at http:www.linuxfromscratch.org/lfs/view/stable/chapter01/how.html Also found some nice articles on a Tiny Busybox system written by the creator of BusyBox himself! Part 1 http:www.linuxjournal.com/article/4335 Part 2 http:www.linuxjournal.com/article/4395 BIOS calles s...
|
post #130 by mreschke Feb 10th 2009 (4728 views)
Kernel Virtual Machine (KVM)
https://mreschke.com/128/kernel-virtual-machine-kvm
Very nice, KVM on ubuntu instructions https:help.ubuntu.com/community/KVM Remember, theres also VirtualBox which I do have running, and there is vmware which I also have running. First attempt to virt vista Installing Windows Vista Ultimate on a KVM Virtual Machine running on Ubuntu Hardy Heron 8.04 Check if CPU can virtualize (can it returns any results) egrep '(vmx|svm)' --color=always /proc/cpuinfo Check if you have a 64 CPU (is if it returns any results) grep ' lm ' /proc/cpuinfo Check if y...
|
post #128 by mreschke Feb 9th 2009 (5521 views)
Solve SMTP Bogus Helo
https://mreschke.com/123/solve-smtp-bogus-helo
> Errors > Helo command rejected: need fully-qualified hostname > Host name xxx.com doesn't match IP address xxx.xxx.xxx.xxx See http:en.wikipedia.org/wiki/List_of_DNS_record_types Im not sure, but I believe along with correcting the reverse dns lookup (see below) you also need to set a fully qualified domain name (FQDN) for EasyMail SMTP Express. Usually, EasyMail will use the name of the server as the FQDN. An example, my server is dyna-web, so the error message is : Helo command rejected: ne...
|
post #123 by mreschke Jan 5th 2009 (8935 views)
Multiboot with Grub
https://mreschke.com/121/multiboot-with-grub
Always leave the 3 primary partitions as large ones, to use for OS's that must be installed on primary Remeber, max 15 partitions (or is it 14, sda14?) If you have multiple drives, use only 1 swap to save partition numbers Pick 1 super small fast distro as your main distro which uses /boot. (or not? just grib-install to boot part?) Very Important (see Differences in partition formatting below) Format all drives and partition with the same OS, newer e2fs formatters are incompatible, grub won't b...
|
post #121 by mreschke Dec 22nd 2008 (4920 views)
Protect Apache Alias with htaccess
https://mreschke.com/115/protect-apache-alias-with-htaccess
How to password protect a apache alias Alias /seagate750/ "/mnt/seagate750/" AllowOverride All Options Indexes MultiViews Allow from all Note, must goto http:server/seagate750/ (Must have that last /) make /mnt/seagate750/.htaccess AuthType Basic AuthName "Password" AuthUserFile /mnt/seagate750/.htpasswd require valid-user make /mnt/seagate750/.htpasswd mreschke:blahblahblah replace that with the correct password, you can find a apache password generator online, just enter mreschke as the user M...
|
post #115 by mreschke Oct 21st 2008 (4211 views)
Xsel command line clipboard
https://mreschke.com/114/xsel-command-line-clipboard
Program that copies command output to the clipboard xsel is a linux GNU tool used to copy command line output or file output to your standard clip board for pasting. http:linuxtidbits.wordpress.com/2008/02/22/command-line-to-clipboard/ To copy a text to the middle mouse button clipboard: xsel < /etc/fstab To copy to the context-menu clipboard: xsel --clipboard < /etc/fstab Also Xsel can be piped to: echo “a-bit-of-text” | xsel -c cat /etc/make.conf | xsel -c Paste To output clipboard informa...
|
post #114 by mreschke Oct 14th 2008 (21280 views)
SSH RSA Keys
https://mreschke.com/106/ssh-rsa-keys
For this to work the servers /etc/ssh/sshd_config must have RSAAuthentication yes PubkeyAuthentication yes On the local client, in a terminal, as the user you normally use to ssh with (like your normal username) ssh-keygen -t rsa This generates an RSA key for SSHv2 (v2 is the -t paramater) This creates 2 files in your /home/username/.ssh/ folder id_rsa, which is the private key id_rsa.pub which is the public key Now we have to get that public key file on to the server your are connecting to wit...
|
post #106 by mreschke Sep 14th 2008 (4905 views)
Remote Filesystem with SSHFS
https://mreschke.com/105/remote-filesystem-with-sshfs
Used for mounting a folder over SSH (Secure Shell File System). So I can map drives from a remote linux server. From http:www.linuxinsight.com/sshfs_secure_and_transparent_access_to_remote_filesystems.html apt-get install sshfs or yum install fuse-sshfs Finally, as sshfs is designed to be used by regular users (not under superuser privileges) you should add yourself (and possibly others) to the fuse system group. Something like this should do: usermod -a -G fuse You must logout and login again...
|
post #105 by mreschke Sep 14th 2008 (5202 views)
Manage Linux Users and Groups
https://mreschke.com/104/manage-linux-users-and-groups
A quick topic describing how to create and manage linux users and groups from the command line. This topic only describes what linux users and groups are and how to manage them. It does not explain security and permissions for those users. Please see for help on that topic. > Remember to use --help (example usermod --help to see a help list for that command Linux is a multi-user operating system. The linux user system uses users and groups to define a users role on the system. A user...
|
post #104 by mreschke Sep 13th 2008 (7138 views)
Partition Management in Linux
https://mreschke.com/101/partition-management-in-linux
Hard drive partition management in Linux Partition Drives Format Drives I don't have to tell you to be careful, everyone deletes a hard drive at some point, no doubt you have too. Make sure you get the right drive letter (sda or sdb or sdc...). I will substitute with x (sdx) This example will create a swap, a root partition for a linux install, and a large home partition. I am using a new seagate 750g SATAII HD. fdisk -l Note: this does not format the drive, just partitions it. fdisk /dev/sdx m...
|
post #101 by mreschke Aug 28th 2008 (5316 views)
FreeNX Remote Desktop
https://mreschke.com/97/freenx-remote-desktop
FreeNX (http:freenx.berlios.de/) is a Terminal Server for Unix & Linux, similar to windows remote desktop or linux 2xTerminalServer. It is based off the non-free NX (http:www.nomachine.com/index.php). FreeNX client is only for linux, but NX has free clients for windows (http:www.nomachine.com/download.php) http:www.drtek.ca/freenx-server-ubuntu-hardy Note, uses SSH, so uses that port in /etc/ssh/sshd_config also, in sshd_config, if you have the AllowUsers set, then must add nx ex: AllowUsers nx...
|
post #97 by mreschke Aug 18th 2008 (2973 views)
Samba in Ubuntu
https://mreschke.com/94/samba-in-ubuntu
apt-get install samba Add the linux user, but disable linux box login useradd -d /home/username -s /bin/false -n username This will create a new user with same group name with (told by '-n'), but the user can't login and run any shell command (because you have specfic the login shell is /bin/false by the '-s' switch, if you want allow user to able to login to a shell, replace /bin/false with /bin/sh). Create a samba user (same as linux username created above) smbpasswd -a username '-a' switch t...
|
post #94 by mreschke Jul 26th 2008 (5577 views)
Debian Apt-Get
https://mreschke.com/90/debian-apt-get
You can see a list of all packages installed by dpkg --get-selections, some packages will say "deinstall" next to them, this means that package has been uninstalled, but old data is still ramaining. You can purge these uninstalled packages by dpkg --purge the-nameof-the-package. If you wanted to write a loop to --purge all package with deinstall, do this for i in $(dpkg --get-selections|grep deinstall|awk '{print $1}'); do dpkg -P $i; done To Count installed packages dpkg --get-selections|grep i...
|
post #90 by mreschke Jul 22nd 2008 (2325 views)
Linux Network Configuration
https://mreschke.com/81/linux-network-configuration
Nice how2 on the /etc/network/interfaces http:www.cyberciti.biz/faq/setting-up-an-network-interfaces-file/ Start the GUI network administration/configuration tool by typing redhat-config-network (Red Hat 9 and Enterprise 3.0) or system-config-network (Fedora) at a shell prompt. Make sure your network interface (typically eth0) is highlighted and click the Edit icon. Select the Automatically obtain IP address settings with dhcp radio button. Check the Automatically obtain DNS information from pr...
|
post #81 by mreschke Jul 12th 2008 (4643 views)
Linux SendEmail
https://mreschke.com/79/linux-sendemail
Not to be confused with linux sendmail. apt-get install sendEmail Create a bash script "sendemail" and run chmod 755 on it. #!/bin/sh export smtpemailfrom=zabbix@yourdomain.com export zabbixemailto=$1 export zabbixsubject=$2 export zabbixbody=$3 export smtpserver=yoursmtpserver.com export smtplogin=smtpuser export smtppass=smtppassword #Use this line if your SMTP server requires authentication /usr/bin/sendEmail -f $smtpemailfrom -t $zabbixemailto -u $zabbixsubject -m $zabbixbody -s $smtpserver:...
|
post #79 by mreschke Jun 30th 2008 (5038 views)
Linux Screen Command
https://mreschke.com/68/linux-screen-command
The following are some of the most used shortcuts that lets you navigate through your screen environment. Note that unless modified by your .screenrc, by default every screen shortcut is preceded by CtrlNote that these shortcuts are case-sensitive (so use shift A and K...) Dont forget to hit Ctrl 0 through 9 - Switches between windows CtrlBackspace - Switches to the previous available CtrlA - Changes window session name K - Kills a window session c - Creates a new window ' Default screens scree...
|
post #68 by mreschke May 21st 2008 (5383 views)
Linux NFS Remote Filesystem
https://mreschke.com/67/linux-nfs-remote-filesystem
Overview of the nfs server options I choose See man exportfs and http:www.troubleshooters.com/linux/nfs.htm for NFS server option details. Also CentOS docs are great for NFS client/serve details http:www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-nfs.html secure server must be started by root because it will use ports lower than 1024 rw enable read and write sync data must be fully synced to disk, this prevents corruption if a server crashes no_wdelay I use this because my nfs re...
|
post #67 by mreschke May 20th 2008 (4666 views)
Iptables Firewall
https://mreschke.com/66/iptables-firewall
<p>This document describes a small portion of iptables and how to setup a basic firewall using iptables. There are many huge books on iptables so I cannot go into any sort of detail here. If you want to create a more advanced firewall, then I suggest installing shorewall and reading the documentation <a class="urlLink" href="http://www.shorewall.net/Introduction.html" onclick="window.open(this.href, '_blank'); return false;">http://www.shorewall.net/Introduction.html</a> about setting it up. I generally use shorewall on my systems and configure them using <a class="urlLink" href="http://www.webmin.com/" onclick="window.open(this.href, '_blank'); return false;">http://www.webmin.com/</a>.</p>
|
post #66 by mreschke May 20th 2008 (5398 views)
Linux Paths
https://mreschke.com/43/linux-paths
Paths are the locations for executables which can be accessed from any location. echo $PATH PATH=$PATH:/dir/dir1 I downloaded UNace (an .ace acrhive extractor) I copied the unace folder to /usr/bin/ I added a path: PATH=$PATH:/usr/bin/unace now I can type unace anywhere, and it finds it from the path To edit a path for a user open $HOME/.bash_profile or to edit for all users edit /etc/profile In either file you will see: PATH=$PATH:$HOME/bin, just add paths to that, separate paths by a : PATH:$P...
|
post #43 by mreschke Apr 15th 2008 (2169 views)
SSH Security
https://mreschke.com/42/ssh-security
<h1 class="heading1" id="toc0">Deny Root Login</h1><a href="#top"><div class="heading_top"></div></a> <p><strong>Never allow root ssh access and make sure all users are disabled except the ones you want, I use KUser KDE User Manager, all users are disabled by default except root and your login username.</strong></p> <ol> <li>Open /etc/ssh/sshd_config</li> <li>There should be a line remmed that says #PermitRootLogin yes, unrem that and change to no</li> </ol> <h1 class="heading1" id="toc1">Different Ports and IPs</h1><a href="#top"><div class="heading_top"></div></a> <p>If your clients do not have SSH access (web hosting for example), a<br /> good way to secure your box is to run SSH on an unknown port and IP, so<br /> that people do not know your SSH port, so can't brute force it.</p>
|
post #42 by mreschke Apr 12th 2008 (4614 views)
Daemons and Runlevels
https://mreschke.com/41/daemons-and-runlevels
See LXF 114 p48, 'Banish Your Daemons' Runlevels are defined levels in which a linux operating system can start. Daemons (or services) are scripts/programs that run in the background constantly (like apache or mysql are services that are always running) and are usually executed at startup by the defined runlevel. Runlevels are identified by a number from 0 - 6, but each linux distribution may use those numbers a bit differently. Basically a runlevel determines which daemons to execute at startu...
|
post #41 by mreschke Apr 12th 2008 (13033 views)
Showing 1 to 50 of 54 results