Changes

Scratchpaper.txt - the intestinal tract of linux notes

9,754 bytes added, 16:56, 27 February 2014
The following lines were added (+) and removed (-):
export PS1='\W[`stoppedjobs`]\$ '*Relative speed: 'jobs -s | wc -l | sed -e "s/ //g" ' takes about 0.24 seconds on an unloaded 486SX25'''How to create a new partition, using all of the scsi drive.''' <nowiki>                                                                --- vmware installation notes ---</nowiki> <nowiki>fdisk /dev/sda                                                  |      for debian linux          |</nowiki> <nowiki>                                                                | 1. apt-get install gcc-2.95    |</nowiki> <nowiki>  n = create new                                                | 2. dpkg -L gcc-2.95            |  </nowiki> <nowiki>                                                                | 3. exportCC=/usr/bin/gcc-2.95  | <- observe dash bonehead</nowiki> <nowiki>  p = primary                                                  | 4. ./vmware-installer.pl        |</nowiki> <nowiki>                                                                | 5. /usr/bin/vmware              |</nowiki> <nowiki>  w = write                                                    |_________________________________|</nowiki> <nowiki></nowiki> <nowiki>mke2fs -j -L /home /dev/sda</nowiki> <nowiki></nowiki> <nowiki>  -j creates journal for ext3 filesystem</nowiki> <nowiki>  -L specifies volume label</nowiki>This filesystem will be automatically checked every 25 mounts or 180 days, whichever comes first.  Use tune2fs -c or -i to override.::e2label  will  display  or  change  the  filesystem  label  on the ext2 filesystem located on device. ::If the optional argument new-label is not present, e2label will  simply display the current filesystem label.force drive controller down to 16 MB/s Multiword DMA Mode 2, since the corruption problem only happens in UltraDMA mode. Use the following command (as root) to select MWDMA mode 2 for device hda: hdparm -X34 /dev/hda''(-X66 instead of -X34 goes back to UltraDMA.)'' Q: I use iptables, but netstat -M won't show masqueraded connections. How do I see them?A: No support for iptables in netstat, the -M is for ipchains+masquerade. Instead you can type this: 'cat /proc/net/ip_conntrack' cat /usr/local/sendmail/virtusertable|grep "^user\."|sed s/org.*$/org/To hide your version of bind, add the following value to named.confversion "[SECURED]"in the options section section as follows:options {  directory "/var/named";  version "[SECURED]";}; If new hardware is not recognized, a reconfiguration boot might help. During the reconfiguration boot, the anaconda hardware configuration program is run with the --reconfig option.Directions To perform a reconfiguration boot, create an empty file called /etc/reconfigSys: touch /etc/reconfigSysdownload Knoppix from ftp.cise.ufl.edu at 148 KB/s <nowiki>symbols for setting file permissions in symbolic mode</nowiki> <nowiki>-------------------------------------------------------------------------------</nowiki> <nowiki>Symbol        Function*      Description</nowiki> <nowiki>u      Who            User (owner)</nowiki> <nowiki>g      Who            Group</nowiki> <nowiki>o      Who            Others</nowiki> <nowiki>A      Who            All</nowiki> <nowiki>=      Operation      Assign</nowiki> <nowiki>+      Operation      Add</nowiki> <nowiki>-      Operation      Remove</nowiki> <nowiki>r      Permission      Read</nowiki> <nowiki>w      Permission      Write</nowiki> <nowiki>x      Permission      Execute</nowiki> <nowiki>l      Permission      Mandatory locking, setgid bit is on, group execution bit is off</nowiki> <nowiki>s      Permission      setuid or setgid bit is on</nowiki> <nowiki>S      Permission      suid bit is on, user execution bit is off</nowiki> <nowiki>t      Permission      Sticky bit is on, execution bit for others is on</nowiki> <nowiki>T      Permission      Sticky bit is on, execution bit for others is off</nowiki> <nowiki>-------------------------------------------------------------------------------</nowiki> <nowiki>The who, operator, and permissions designations in the function column specify</nowiki> <nowiki>the symbols that change the permissions on the file or directory.</nowiki>graphics:  netpbm----make pdf: from tiff, Use Tiff to PS  (in linux)  tiff2ps *.tiff > tiffs.psfrom PS to PDF  ps2pdf tiffs.ps----What it looks like when someone has a backdoor and they don't know it... 6969 TCP acmsoda acmsoda 2000 Cracks, Net Controller,IRC 3, GateCrasher, Danton, Priority, 2000Cracks, Bigorna Initiating SYN Stealth Scan against CPE-143-238-120-x.nsw.bigpond.net.au (143.238.120.x) (The 1541 ports scanned but not shown below are in state: filtered) Port      State      Service 6969/tcp  closed      acmsoda Services registered for this port (from Neohapsis) Protocol Service Name tcp 2000Cracks [trojan] 2000 Cracks tcp acmsoda tcp Danton [trojan] Danton tcp GateCrasher [trojan] GateCrasher tcp GateCrasher [trojan] GateCrasher tcp IRC3 [trojan] IRC 3 tcp NetController [trojan] Net Controller tcp Priority [trojan] Priority udp acmsoda "a daemon for monitoring the temperature of thesoda machine in the computer lab hall".----To check Hard Drive speed # /sbin/hdparm -Tt /dev/hdx /dev/hdy where 'x' and 'y' (etc.) are the drive letters you wish to test. It will giveyou a transfer rate readout.----using split to fit large archives on dvdr split -b 1048576k fresh-w2k-amd1k-2004091001.gz split_fresh-w2k-amd1k-2004091001.gz.----which - shows the full path of (shell) commands. lspci lsmod ifconfig -a/sbin/lspci -vvx  <-- which gives verbose info about the PCI bus.mknod -m 666 /dev/video1394/0 c 171 16  <-- making a device example&nbsp; &nbsp;---- Vitesse VSC8201RX VSC8201 VITESSE 8201 onboard ethernet----Ethernet PHY Device:Modern ethernet subsystems are often separated into two pieces, the media access controller (sometimes known as a MAC) and the physical device or line interface (often referred to as a PHY). In this case, the MAC handles generating and parsing physical frames and the PHY handles how this data is actually moved to/from the wire. The MAC and PHY communicate via a special protocol, known as MII. This MII protocol can handle control over the PHY which allows for selection of such transmission criteria as line speed, duplex mode, etc.Support for the Cicada 8201 PHY, a.k.a Vitesse VSC8201.  This PHY is present on the MPC8349mITX. drivers/net/phy/cicada.c lspci: Bridge: nVidia Corporation MCP51 Ethernet Controller (rev a1)*Network Controller 1 x VITESSE VSC8201RX 10/100/1000Mbps*nVidia nForce 430 chipsets*K8NGM2-FID Windows XP reports: -Network Adapters  +1394 Net Adapter  +NVIDIA nForce Networking Controller -NVIDIA Network Bus Enumerator  +NVIDIA Network Bus EnumeratorVitesse and Marvell likely won't without recompiling.The card is listed in the network preferences, but the actual device/dev/net/nforcedeth does not exist.it shows up in Devices as "Bridge Device" vendor id: 0x10de card id: 0x269http://ubuntuforums.org/showthread.php?t=164734&highlight=K8NGM2-FID:Ubuntu wants to use the forcedeth driver for the ethernet port:MSI K8NGM2-FID board. Ubuntu wants to use the forcedeth driver for the ethernet port, but (for me) that driver only works if I power down then boot into ubuntu (I dual boot with winxp). If I have been in xp and just reboot into ubuntu, it won't work. So, as a workaround, I have been using the NVIDIA nforce drivers (for the ethernet only, not the sound as it works with the ALSAdriver), and it works fine if you unload both drivers (forcedeth and nvnet), then modprobe nvnet, then reconfigure networking (sudo invoke-rc.d networking restart).forcedeth 23428  0compile and use Nvidia's nvnet network driver rather than forcedethNFORCE-Linux-x86_64-1.0-0306-pkg1.runnvnet.koMCP51 nvnet----tc command set Netem Network Emulation functionalityhttp://linux-net.osdl.org/index.php/Netem # tc qdisc add dev eth0 root netem delay 100msIn g4u Ghost For Unix ghost for unixNow set the IP address by running the command ifconfig <ip address> netmask<subnet mask>. For example, to set the IP address on interface pcn0, you wouldrun ifconfig pcn0 192.168.0.10 netmask 255.255.255.0.ifconfig xx0 1.2.3.4 netmask 255.255.255.0route add default 2.3.4.5 Now set the IP address by running the command ifconfig <ip address> netmask<subnet mask>. For example, to set the IP address on interface pcn0, you wouldrun ifconfig pcn0 192.168.0.10 netmask 255.255.255.0.Ports, Protocols, and DaemonsIn the /etc/services file you will find a few lines that refer to Sambaservices: #netbios-ns 137/tcp # NetBIOS Name Service#netbios-ns 137/udp#netbios-dgm 138/tcp # NetBIOS Datagram Service#netbios-dgm 138/udp#netbios-ssn 139/tcp # NetBIOS Session Service#netbios-ssn 139/udp#microsoft-ds 445/tcp # Microsoft Directory Service#microsoft-ds 445/udpThe picture this provides is somewhat deceiving, since the half of those linescould be removed and condensed to: *netbios-ns 137/udp # NetBIOS Name Service*netbios-dgm 138/udp # NetBIOS Datagram Service*netbios-ssn 139/tcp # NetBIOS Session Service*microsoft-ds 445/tcp # Microsoft Directory Service&nbsp;----<big>Mandriva Live CD</big>When booting a livecd on a modern sata system with an ide for cdrom, the cdrom fails to mount, no ide found.* No ide channels found <BR>The solution:  add a kernel parameter at bootloader prompt.  boot: livecd irqprobe all-generic-ide&nbsp;&nbsp;&nbsp;{{:Template:Archived Entry}}[[Category:Legacy Notes]][[Category:Computer_Technology]][[Category:Linux]]
Bureaucrat, administrator
16,192
edits