Search Results for 'swap'

Forum Forums Search Search Results for 'swap'

Viewing 15 results - 1,561 through 1,575 (of 1,706 total)
  • Author
    Search Results
  • #7868
    Member
    mark

      You should go to a terminal and run

      inxi -Fxz

      Post the output of that here. Also, to be clearer, maybe list the steps you did as a list in order, as its hard to understand what you created and how you are trying to boot.

      I can’t get to a terminal to run the command in antiX. In Ubuntu, that command is not recognized.
      The steps I performed for a live install are…
      1)Burned the iso to DVD.
      2) inserted 256G thumb drive
      3)Set bios to boot DVD 1st.
      4)Turn off secure boot
      5)save and exit bios
      6)AntiX begins boot sequence
      7) Selected Custom from antiX boot menu. (tried all the other options too).
      8)select timezone
      9)select US 105 keyboard
      10)select default for other options.
      11)AntiX goes through boot text screens (some error messages that go by too fast, I’ll record and post)
      12) mouse appears on screen with all black background. Sometimes the mouse pointer is visible when it freezes, sometimes it disappears and freezes.

      Here is the inxi -Fxz output from Virtualbox…

      System: Host: antix1 Kernel: 4.10.5-antix.3-amd64-smp x86_64 bits: 64 gcc: 6.3.0
      Desktop: IceWM 1.4.2 Distro: antiX-17_x64-full Heather Heyer 24 October 2017
      Machine: Device: virtualbox System: innotek product: VirtualBox v: 1.2 serial: N/A
      Mobo: Oracle model: VirtualBox v: 1.2 serial: N/A
      BIOS: innotek v: VirtualBox date: 12/01/2006
      Battery BAT0: charge: 49.0 Wh 98.0% condition: 50.0/50.0 Wh (100%)
      model: innotek 1 status: Discharging
      CPU: Single core Intel Core i5-5200U (-UP-) arch: Broadwell rev.4 cache: 3072 KB
      flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3) bmips: 4391 speed: 2194 MHz (max)
      Graphics: Card: InnoTek Systemberatung VirtualBox Graphics Adapter bus-ID: 00:02.0
      Display Server: X.Org 1.19.2 drivers: modesetting (unloaded: fbdev,vesa)
      Resolution: 800×600@59.96hz
      OpenGL: renderer: Gallium 0.4 on llvmpipe (LLVM 3.9, 256 bits)
      version: 3.3 Mesa 13.0.6 Direct Render: Yes
      Audio: Card Intel 82801AA AC’97 Audio Controller
      driver: snd_intel8x0 ports: d100 d200 bus-ID: 00:05.0
      Sound: Advanced Linux Sound Architecture v: k4.10.5-antix.3-amd64-smp
      Network: Card: Intel 82540EM Gigabit Ethernet Controller
      driver: e1000 v: 7.3.21-k8-NAPI port: d010 bus-ID: 00:03.0
      IF: eth0 state: up speed: 1000 Mbps duplex: full mac: 08:00:27:e7:b2:c3
      WAN IP: 171.191.55.45
      IF: eth0 ip-v4: 10.0.2.15 ip-v6-link: fe80::a00:27ff:fee7:b2c3
      Drives: HDD Total Size: 8.6GB (46.5% used)
      ID-1: /dev/sda model: VBOX_HARDDISK size: 8.6GB
      Partition: ID-1: / size: 6.8G used: 2.8G (43%) fs: ext4 dev: /dev/sda1
      ID-2: swap-1 size: 1.07GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
      Sensors: None detected – is lm-sensors installed and configured?
      Info: Processes: 131 Uptime: 5 min Memory: 128.3/2003.0MB
      Init: SysVinit runlevel: 5 Gcc sys: 6.3.0
      Client: Shell (bash 4.4.121) inxi: 2.3.40

      • This reply was modified 5 years, 1 month ago by mark.
      • This reply was modified 5 years, 1 month ago by mark.
      • This reply was modified 5 years, 1 month ago by mark.
      #7859
      Member
      X180A

        Thanks, folks. I tried the low rent version of Palemoon and it makes a difference. I will try some of the other tweeks in a bit. For now, I’m going to do what I can for a better install on the MSI desktop.

        I like azrielle’s suggestion about using the SSD card for root. The reason I disabled booting to SSD in BIOS when I installed was because no matter what I did the antiX installer would only let me install and boot on that drive. If I tried to install on the SATA it failed to boot. Trying to install on the SATA and putting the boot record on the SSD wouldn’t work. That’s why I disabled the SSD for install, installed on the SATA, then re-enabled the SSD and made it a swap. To make that work I had format the SSD with swap file system, and edit fstab by entering the SSD’s UID and listing it as a swap location.

        Yesterday, I tried azrielle’s idea. During install, I used the partition tool and made the SSD drive the root partition and created /home and swap on the SATA. Then, when I proceeded with install it would not let me install to both disks. The installer only lets me install to one disk or the other. I tried all sorts of configurations but I can’t get around the installer’s inability to install to multiple disks.

        So, I have an idea but I don/t know if it will work. I’m thinking of doing an install on the SSD. Then, disabling booting to the SSD and doing a second install to the SATA. That will leave me with two separate and complete installs, one on each disk and each with its own on-disk boot record. Then, I’m thinking, I can use the partitioning tool to delete the swap file on the SSD and expand the root partition to use all 4GB of that drive. Next, I would delete the root partition on the SATA and create /home and swap partitions on that drive. Finally, I could edit fstab to direct everything in the right place. At least in theory.

        However, I am left with something to sort out. Doing the above will create two fstabs, one on each disk. Since I want to boot and have root on the SSD I will have to edit that fstab. To do so, I will have to boot to that drive and do the edit from there. But if I do that I cannot delete the swap partition nor can I resize the root partition on that drive. I’ll have to figure out some way to modify the fstab on the SSD while I am booted on and using antiX on the SATA.

        Any ideas?

        #7836
        Member
        azrielle

          If I had a 4GB SSD and a 320GB mechanical HDD, I would setup the SSD as root and install AntiX onto it (which only requires 2.7GB to install), and setup the HDD as /home, /data, etc. Even OLD SSDs speed up boot times remarkably. That said, it is important to realize that ALL browsers cache web page data onto the HDD in preference to RAM…the proof is in the pudding–installing a cheap 120GB SSD onto an n270 powered netbook triples the number of tabs that can be opened in any given browser before the system slows down to a crawl. With respect to your first mentioned PC with only 1GB RAM, it really would be worth it to swap out the HDD for a SSD.

          Lenovo T430 i5/3220M 8GB 14.1" MX17.1/AntiX 17.1 Fluxbox/Win7SP1 180GB SSD+128GB mSATA
          Lenovo X230 i7/3520M 12GB 12.5" MX17.1/Win7SP1 500GB SSD
          Lenovo X131e i3/3227u 8GB 11.6" MX17.1/AntiX 17.1 Fluxbox/Win7SP1 500GB SSD
          #7828
          Anonymous

            the 485 MB swap remained “in use” even after I closed GIMP. I don’t know if that’s normal
            That behavior is governed by the parameter vm.vfs_cache_pressure value stated in /etc/sysctl.conf
            and you can tweak it to better suit your usage. (websearch “linux swap sysctl.conf” will find various, often conflicting, tutorials advising what values are “best”.)

            enough to be usable. That is, until the browser opens.
            Aye. Several forum topics here contain tips and suggestions regarding alternative web browsers.

            ===========
            PSA:
            “javascript” (aka ECMAScript) is not Java.
            Firefox web browser can only accommodate “Java” via a plugin (e.g. the “IcedTea” plugin).
            FWIW, when setting up a new linux system, I immediately disable + uninstall “IcedTea” if it has been pre-installed.
            Also FWIW ~~ none of the sites I’ve visited throughout the past decade have been “broken” due to the absence of Java plugin.

            Member
            X180A

              I’m new to the forum. It’s great to find this ethereal repository of knowledge and experience.

              I have two old XP machines and I decided to breath new life into them. AntiX is a great distro – easy to install, excellent at finding and configuring hardware, and runs on low resources.

              Not Quite Successful:

              • Dell Inspiron laptop built from the best parts of a model 1100 and a model 1150
              • Intel Celeron 2.6 GHz, 128K Cache, 400 MHz FSB
              • 1024 MB RAM – maximum for these models
              • 100 GB 2.5″ SATA

              I tried LUBUNTU and then MX with horrid results – Slooooooooooow. Installing 32-bit antiX was very easy. AntiX found and installed the built in WiFi card. Then, just for the sake of it, I inserted a Linksys PCMCIA WiFi card. I manually installed it using the network tools that came with the distro and it was easy to set up.

              Performance on the old gal was far from snappy but okay enough to be usable. That is, until the browser opens. The CPU meter gets pegged at 100% and stays there for just about any internet browsing. Google drive was so slow it couldn’t be used. I think that might be because of some heavy java overhead. I wasn’t running out of RAM, the CPU was the bottleneck. It just couldn’t keep up.

              Maybe doing a base install instead of a full install would help. But I think this hardware is just too old and slow. Perhaps I’ll turn it into a Win95 laptop and fill it with old DOS and Windows 16-bit games for the kids.

              Successful:

              • MSI Wind Box DE200 – a mini desktop
              • Intel Atom 230 @ 1.6 GHz
              • Single core
              • 2048 MB RAM soldered and no more can be added
              • 4 GB SSD drive built into motherboard
              • 320 GB SATA

              I tried MINT, then LUBUNTU, then MX but they were all too clunky to do anything with. I finally installed 32-bit antiX (full) and the machine runs fantastic. I disabled the SSD from the boot sequence in the BIOS. The install was painless, including the automatic detection of and installation of the built in Wi-Fi adapter, something MINT and LUBUNTU didn’t do. The browser is fantastic at killing ads and runs smooth even on this old box. I can watch YouTube videos and embedded videos on websites.

              I decided to format the entire 4 GB SSD as a second swap partition. So, now I have two swap partitions mounting at boot-up, one on each of the drives. Nearly 6 GB of swap showing on the desktop meter. I know, I know, but I’m having fun! I installed GIMP and created a 1,280 MB, 300 dpi billboard size image just to see what would happen. RAM usage went up to ~1.6 GB and ~485 MB of hybrid swap was used. Then I tried the browser on a new site loaded with ads and videos and it loaded and displayed just as it had without GIMP running. I was surprised to see the 485 MB swap remained “in use” even after I closed GIMP. I don’t know if that’s normal or not but it doesn’t matter. I really had to do something silly to get it put the swap into use in the first place.

              I thought about installing the 64-bit version of antiX but without a dual core CPU and only 2 GB of RAM would it have made a difference?

              I’m looking forward to putting antiX on a modern, high powered platform. I bet it would fly!

              Member
              malanrich

                The “Mount Connected Devices” button has disappeared from my Control Centre. This is on antiX-17, but I currently run other versions of antiX on other machines. Has it been removed from “Heather Heyer”? My USB drives automount, so I haven’t needed the “Mount” function in Control Centre. But I’d swear it used to be there. If it did, any clue to why it would disappear? [Machine is regularly updated. Stats below]

                System: Host: antix1 Kernel: 4.10.5-antix.1-486-smp i686 bits: 32 gcc: 6.3.0
                Desktop: IceWM 1.4.2 Distro: antiX-17_386-full Heather Heyer 24 October 2017
                Machine: Device: desktop System: Dell product: OptiPlex GX260 serial: N/A
                Mobo: Dell model: 00T606 serial: N/A BIOS: Dell v: A09 date: 11/01/2004
                CPU: Single core Intel Pentium 4 (-UP-)
                arch: Netburst Willamette rev.7 cache: 512 KB
                flags: (pae sse sse2) bmips: 4516 speed: 2258 MHz (max)
                Graphics: Card: Advanced Micro Devices [AMD/ATI] RV200 [Radeon 7500/7500 LE]
                bus-ID: 01:00.0
                Display Server: X.Org 1.19.2
                drivers: ati,radeon (unloaded: modesetting,fbdev,vesa)
                Resolution: 1024×768@85.00hz
                OpenGL: renderer: Mesa DRI R100 (RV200 5157) x86/MMX/SSE2 DRI2
                version: 1.3 Mesa 13.0.6 Direct Render: Yes
                Audio: Card Intel 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC’97 Audio Controller
                driver: snd_intel8x0 ports: c800 cc40 bus-ID: 00:1f.5
                Sound: Advanced Linux Sound Architecture v: k4.10.5-antix.1-486-smp
                Network: Card-1: Intel 82540EM Gigabit Ethernet Controller
                driver: e1000 v: 7.3.21-k8-NAPI port: dc80 bus-ID: 02:0c.0
                IF: eth0 state: down mac: <filter>
                Card-2: Realtek RTL8187B Wireless 802.11g 54Mbps Network Adapter
                driver: rtl8187 usb-ID: 001-002
                IF: wlan0 state: N/A mac: N/A
                Drives: HDD Total Size: 40.0GB (17.2% used)
                ID-1: /dev/sda model: WDC_WD400BB size: 40.0GB
                Partition: ID-1: / size: 35G used: 4.6G (14%) fs: ext4 dev: /dev/sda1
                ID-2: swap-1 size: 2.15GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
                Sensors: None detected – is lm-sensors installed and configured?
                Info: Processes: 136 Uptime: 11 min Memory: 201.5/2016.2MB
                Init: SysVinit runlevel: 5 Gcc sys: 6.3.0
                Client: Shell (bash 4.4.121) inxi: 2.3.54

                #7690
                Member
                JoeR

                  I got hold of some updated hardware (64bit i7) and did a fresh install of the newest antiX. Everything went well and installed normally, I then tried to boot up without the install usb drive, and it would’t boot to the hdd, Error was no boot drive found or disk error. I was able to use “Super Grub2 Disk” which did a search for the antiX boot partition then selected it and booted normally into antiX, and everything ran fine. Just can’t boot without the grub2 usb drive.

                  I have no idea where to start to try to solve this one. Any help is much appreciated.
                  Joe

                  Super GRUB2 Disk helps you to boot into most any Operating System (OS) even if you cannot boot into it by normal means.

                  Partition: ID-1: / size: 584G used: 3.7G (1%) fs: ext4 dev: /dev/sda2
                  label: rootantiX uuid: d7cab72d-931a-4cb4-be24-31afe0386c27
                  ID-2: /boot/efi size: 253M used: 121K (1%) fs: vfat dev: /dev/sda1 label: N/A uuid: EA51-9F8F
                  ID-3: swap-1 size: 2.15GB used: 0.00GB (0%) fs: swap dev: /dev/sda3
                  label: antiXswap uuid: 7c52137b-7b68-4dc2-8694-3c68d2534b0d

                  #7532
                  Moderator
                  BobC

                    Ok, I can make a tar file of it. I think I’ll post it in the conky mods thread since that probably makes more sense.

                    I’m putting a piece of tape on each battery and marking it with what percent of capacity that battery has. That way when I swap I’ll know what to expect.

                    PS:Rust collector’s battery solution worked, but I can’t mark the thread solved

                    • This reply was modified 5 years, 2 months ago by BobC.
                    #7516

                    In reply to: Conky Mods

                    Member
                    sleekmason

                      Howdy ile!

                      Looking good! The single line solutions to parse caps and scroll lock are outstanding!

                      Did you see this post earlier? https://www.antixforum.com/forums/topic/conky-mods/#post-7242

                      In the screenshot check out the bars for mem and swap:)

                      ${color}Ram:${alignr}$mem ${color2}  /${color} $memmax
                      ${membar 4} 
                      ${color}Swap:${alignr}$swap ${color2} /${color} $swapmax
                      ${swapbar 4}



                      Also, I noticed the antiX url . . reminder? or maybe “current site browsed”?

                      #7421

                      In reply to: FTP for new antiX user

                      Forum Admin
                      rokytnji

                        you’re covered. Hell. I’m admin and I have to whitelist this action again for me because I am here on my other chromebook.

                        $ sudo inxi -Fxzr
                        System:    Host: antix1 Kernel: 4.10.5-antix.1-486-smp i686 bits: 32 gcc: 6.3.0 Console: tty 1
                                   Distro: antiX-17_386-full Heather Heyer 24 October 2017
                        Machine:   Device: desktop System: Dell product: Dimension 2400 serial: <filter>
                                   Mobo: Dell model: 0F5949 v: A01 serial: <filter> BIOS: Dell v: A05 date: 12/02/2003
                        CPU:       Single core Intel Celeron (-UP-) arch: Netburst Willamette rev.9 cache: 128 KB
                                   flags: (pae sse sse2) bmips: 4784 speed: 2392 MHz (max)
                        Graphics:  Card: Intel 82845G/GL[Brookdale-G]/GE Integrated Graphics Device bus-ID: 00:02.0
                                   Display Server: X.org 1.19.2 drivers: intel (unloaded: modesetting,fbdev,vesa)
                                   tty size: 137x41 Advanced Data: N/A for root out of X
                        Audio:     Card Intel 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller
                                   driver: snd_intel8x0 ports: ee00 edc0 bus-ID: 00:1f.5
                                   Sound: Advanced Linux Sound Architecture v: k4.10.5-antix.1-486-smp
                        Network:   Card: Broadcom Limited BCM4401 100Base-T driver: b44 v: 2.0 bus-ID: 01:09.0
                                   IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
                        Drives:    HDD Total Size: 480.1GB (5.9% used)
                                   ID-1: /dev/sda model: ST380011A size: 80.0GB
                                   ID-2: /dev/sdb model: ST3400832A size: 400.1GB
                        Partition: ID-1: / size: 71G used: 4.8G (8%) fs: ext4 dev: /dev/sda1
                                   ID-2: swap-1 size: 2.15GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
                        Sensors:   None detected - is lm-sensors installed and configured?
                        Repos:     Active apt sources in file: /etc/apt/sources.list.d/antix.list
                                   deb http://repo.antixlinux.com/stretch stretch main nosystemd
                                   Active apt sources in file: /etc/apt/sources.list.d/debian-stable-updates.list
                                   deb http://ftp.ca.debian.org/debian/ stretch-updates main contrib non-free
                                   Active apt sources in file: /etc/apt/sources.list.d/debian.list
                                   deb http://ftp.ca.debian.org/debian/ stretch main contrib non-free
                                   deb http://security.debian.org/ stretch/updates main contrib non-free
                        Info:      Processes: 146 Uptime: 12:36 Memory: 140.3/747.7MB Init: SysVinit runlevel: 5 Gcc sys: 6.3.0
                                   Client: Shell (sudo) inxi: 2.3.54
                        

                        Sometimes I drive a crooked road to get my mind straight.
                        Not all who Wander are Lost.
                        I'm not outa place. I'm from outer space.

                        Linux Registered User # 475019
                        How to Search for AntiX solutions to your problems

                        #7274
                        Member
                        sleekmason

                          Thank you for the suggestion Bobc

                          diff -y networking.old networking.new 
                          #!/bin/sh -e							#!/bin/sh -e
                          ### BEGIN INIT INFO						### BEGIN INIT INFO
                          # Provides:          networking ifupdown			# Provides:          networking ifupdown
                          # Required-Start:    mountkernfs $local_fs urandom		# Required-Start:    mountkernfs $local_fs urandom
                          # Required-Stop:     $local_fs					# Required-Stop:     $local_fs
                          # Default-Start:     S						# Default-Start:     S
                          # Default-Stop:      0 6				      |	# Default-Stop:      
                          # Short-Description: Raise network interfaces.			# Short-Description: Raise network interfaces.
                          # Description:       Prepare /run/network directory, ifstate 	# Description:       Prepare /run/network directory, ifstate 
                          ### END INIT INFO						### END INIT INFO
                          
                          PATH="/sbin:/bin"					      |	# Don't exit on error status
                          							      >	set +e
                          							      >
                          							      >	PATH="/sbin:/bin:/usr/bin"
                          RUN_DIR="/run/network"						RUN_DIR="/run/network"
                          IFSTATE="$RUN_DIR/ifstate"					IFSTATE="$RUN_DIR/ifstate"
                          STATEDIR="$RUN_DIR/state"					STATEDIR="$RUN_DIR/state"
                          							      >	NET_STATE="$RUN_DIR/net-state"
                          
                          [ -x /sbin/ifup ] || exit 0					[ -x /sbin/ifup ] || exit 0
                          [ -x /sbin/ifdown ] || exit 0					[ -x /sbin/ifdown ] || exit 0
                          
                          							      >	ME=${0##*/}
                          							      >
                          . /lib/lsb/init-functions					. /lib/lsb/init-functions
                          
                          							      >	LOG_FILE=/var/log/init.d-$ME.log
                          CONFIGURE_INTERFACES=yes					CONFIGURE_INTERFACES=yes
                          EXCLUDE_INTERFACES=						EXCLUDE_INTERFACES=
                          VERBOSE=no						      <
                          
                          [ -f /etc/default/networking ] && . /etc/default/networking	[ -f /etc/default/networking ] && . /etc/default/networking
                          
                          verbose=""						      |	: ${LOG_FILE:=/dev/null}
                          [ "$VERBOSE" = yes ] && verbose=-v			      |	: ${IFUP_TIMEOUT:=60}
                          							      <
                          process_exclusions() {					      <
                              set -- $EXCLUDE_INTERFACES				      <
                              exclusions=""					      <
                              for d						      <
                              do							      <
                          	exclusions="-X $d $exclusions"			      <
                              done						      <
                              echo $exclusions					      <
                          }							      <
                          
                          process_options() {					      |	check_run_dir() {
                              [ -e /etc/network/options ] || return 0		      |	    test -d "$RUN_DIR" && return
                              log_warning_msg "/etc/network/options still exists and it |	    if mkdir -p "$RUN_DIR"; then
                          							      >	        chown root:netdev "$RUN_DIR" || log_warning_msg "can'
                          							      >	    else
                          							      >	        log_failure_msg "can't create $RUN_DIR"
                          							      >	        exit 1
                          							      >	    fi
                          }								}
                          
                          check_ifstate() {						check_ifstate() {
                              if [ ! -d "$RUN_DIR" ] ; then			      |	    test -r "$IFSTATE" && return
                          	if ! mkdir -p "$RUN_DIR" ; then			      |	    :> "$IFSTATE"
                          	    log_failure_msg "can't create $RUN_DIR"	      |	    test -r "$IFSTATE" && return
                          	    exit 1					      |	    log_failure_msg "can't initialise $IFSTATE"
                          	fi						      |	    exit 1
                          	if ! chown root:netdev "$RUN_DIR" ; then	      <
                          	    log_warning_msg "can't chown $RUN_DIR"	      <
                          	fi						      <
                              fi							      <
                              if [ ! -r "$IFSTATE" ] ; then			      <
                          	if ! :> "$IFSTATE" ; then			      <
                          	    log_failure_msg "can't initialise $IFSTATE"	      <
                          	    exit 1					      <
                          	fi						      <
                              fi							      <
                          }								}
                          
                          check_network_file_systems() {					check_network_file_systems() {
                              [ -e /proc/mounts ] || return 0				    [ -e /proc/mounts ] || return 0
                          
                              if [ -e /etc/iscsi/iscsi.initramfs ]; then			    if [ -e /etc/iscsi/iscsi.initramfs ]; then
                          	log_warning_msg "not deconfiguring network interfaces |	        log_warning_msg "not deconfiguring network interfaces
                          	exit 0						      |	        exit 0
                              fi								    fi
                          
                              while read DEV MTPT FSTYPE REST; do				    while read DEV MTPT FSTYPE REST; do
                          	case $DEV in					      |	        case $DEV in
                          	/dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*|curlftpfs*)    |	        /dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*)
                          	    log_warning_msg "not deconfiguring network interf |	            log_warning_msg "not deconfiguring network interf
                          	    exit 0					      |	            exit 0
                          	    ;;						      |	            ;;
                          	esac						      |	        esac
                          	case $FSTYPE in					      |	        case $FSTYPE in
                          	nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs|pvfs|pvf |	        nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs|pvfs|pvf
                          	    log_warning_msg "not deconfiguring network interf |	            log_warning_msg "not deconfiguring network interf
                          	    exit 0					      |	            exit 0
                          	    ;;						      |	            ;;
                          	esac						      |	        esac
                              done < /proc/mounts						    done < /proc/mounts
                          }								}
                          
                          check_network_swap() {						check_network_swap() {
                              [ -e /proc/swaps ] || return 0				    [ -e /proc/swaps ] || return 0
                          
                              while read DEV MTPT FSTYPE REST; do				    while read DEV MTPT FSTYPE REST; do
                          	case $DEV in					      |	        case $DEV in
                          	/dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*)		      |	        /dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*)
                          	    log_warning_msg "not deconfiguring network interf |	            log_warning_msg "not deconfiguring network interf
                          	    exit 0					      |	            exit 0
                          	    ;;						      |	            ;;
                          	esac						      |	        esac
                              done < /proc/swaps						    done < /proc/swaps
                          }								}
                          
                          							      >	# Try to bring up every hot-plug interface that has a sys dir
                          							      >	# and that is not listed in EXCLUDE_INTERFACES.  Launch each 
                          							      >	# in the background
                          ifup_hotplug () {						ifup_hotplug () {
                              if [ -d /sys/class/net ]				      |		local all_ifaces="${*:-$(ifquery --list --allow=hotpl
                              then						      |
                          	    ifaces=$(for iface in $(ifquery --list --allow=ho |	    local excludes="$EXCLUDE_INTERFACES"  sys_dir=/sys/class/
                          			    do				      |
                          				    link=${iface##:*}	      |	    test -d $sys_dir || return
                          				    link=${link##.*}	      |
                          				    if [ -e "/sys/class/net/$ |	    printf " "
                          				    then		      |
                          					echo "$iface"	      |	    local children iface
                          				    fi			      |	    for iface in $all_ifaces; do
                          			    done)			      |	        test -d $sys_dir/$iface || continue
                          	    if [ -n "$ifaces" ]				      |	        case " $excludes " in  *" $iface "*) continue;;  esac
                          	    then					      |
                          		ifup $ifaces "$@" || true		      |	        # # Make sure ifup is not already running for this in
                          	    fi						      |	        # local proc="$(ps -C ifup ho args)"
                          							      >	        # [ "${proc%$iface*}" != "$proc" ] && continue
                          							      >
                          							      >	        printf "%s " $iface
                          							      >	        echo "$ME: ifup $iface" >/dev/kmsg
                          							      >	        (ifup $iface >>$LOG_FILE 2>>$LOG_FILE) &
                          							      >	        children="$children $!"
                          							      >	    done
                          							      >
                          							      >	    [ -z "$children" ] && return
                          							      >	    local reaper=/usr/local/bin/process-reaper
                          							      >	    if test -x $reaper; then
                          							      >	    $reaper $children &
                          							      >	    else
                          							      >	    (sleep $IFUP_TIMEOUT ; kill $children) &
                              fi								    fi
                          							      >	    return 0
                          }								}
                          
                          case "$1" in						      |	udevadmin_settle() {
                          start)							      |	    [ -x /sbin/udevadm ] || return
                          	process_options					      |	    #[ -z "$(ifquery --list --exclude=lo)" ] && [ -z "$(ifque
                          	check_ifstate					      |	    udevadm settle
                          							      |	}
                          	if [ "$CONFIGURE_INTERFACES" = no ]		      |
                          	then						      |	case $1 in
                          	    log_action_msg "Not configuring network interface |	    start)
                          	    exit 0					      |	        init_is_upstart && exit 1
                          	fi						      |	        check_run_dir
                          	set -f						      |	        check_ifstate
                          	exclusions=$(process_exclusions)		      |	        touch $NET_STATE
                          	log_action_begin_msg "Configuring network interfaces" |
                          	if [ -x /bin/udevadm ]; then			      |	        if [ "$CONFIGURE_INTERFACES" = no ]
                          		if [ -n "$(ifquery --list --exclude=lo)" ] || |	        then
                          			/bin/udevadm settle || true	      |	            log_action_msg "Not configuring network interface
                          		fi					      |	            log_action_end_msg 0
                          	fi						      |	            exit 0
                          	if ifup -a $exclusions $verbose && ifup_hotplug $excl |	        fi
                          	then						      |	        set -f
                          	    log_action_end_msg $?			      |
                          	else						      |	        log_action_begin_msg "Configuring network interfaces 
                          	    log_action_end_msg $?			      |
                          	fi						      |	        test -f $LOG_FILE && rm -f $LOG_FILE
                          	;;						      |
                          							      |	        udevadmin_settle
                          stop)							      |
                          	check_network_file_systems			      |	        ifup -a && ifup_hotplug
                          	check_network_swap				      |	        log_action_end_msg $?
                          							      |	        echo "$ME done" > /dev/kmsg
                          	log_action_begin_msg "Deconfiguring network interface |	        ;;
                          	if ifdown -a --exclude=lo $verbose; then	      |
                          	    log_action_end_msg $?			      |	    stop)
                          	else						      |	        init_is_upstart && exit 0
                          	    log_action_end_msg $?			      |	        check_network_file_systems
                          	fi						      |	        check_network_swap
                          	;;						      |
                          							      |	        rm -r $NET_STATE
                          reload)							      |
                          	process_options					      |	        test -e /run/network/.ifstate.lock || exit 0
                          							      |	        log_action_begin_msg "Deconfiguring network interface
                          	log_action_begin_msg "Reloading network interfaces co |	        ifdown --all --exclude=lo
                          	state=$(ifquery --state)			      |	        log_action_end_msg $?
                          	ifdown -a --exclude=lo $verbose || true		      |	        ;;
                          	if ifup --exclude=lo $state $verbose ; then	      |
                          	    log_action_end_msg $?			      |	    reload)
                          	else						      |	        init_is_upstart && exit 1
                          	    log_action_end_msg $?			      |
                          	fi						      |	        log_action_begin_msg "Reloading network interfaces co
                          	;;						      |	        state=$(ifquery --state)
                          							      |	        ifdown --all --exclude=lo
                          force-reload|restart)					      |	        ifup --exclude=lo $state
                          	process_options					      |	        log_action_end_msg $?
                          							      |	        ;;
                          	log_warning_msg "Running $0 $1 is deprecated because  |
                          	log_action_begin_msg "Reconfiguring network interface |	    force-reload|restart)
                          	ifdown -a --exclude=lo $verbose || true		      |	        init_is_upstart && exit 1
                          	set -f						      |
                          	exclusions=$(process_exclusions)		      |	        log_warning_msg "Running $0 $1 is deprecated because 
                          	if ifup -a --exclude=lo $exclusions $verbose && ifup_ |	        log_action_begin_msg "Reconfiguring network interface
                          	then						      |	        ifdown --all --exclude=lo
                          	    log_action_end_msg $?			      |	        ifup --all --exclude=lo && ifup_hotplug
                          	else						      |	        log_action_end_msg $?
                          	    log_action_end_msg $?			      |	        ;;
                          	fi						      |
                          	;;						      |	    *)
                          							      |	        echo "Usage: /etc/init.d/networking {start|stop|reloa
                          *)							      |	        exit 1
                          	echo "Usage: /etc/init.d/networking {start|stop|reloa |	        ;;
                          	exit 1						      <
                          	;;						      <
                          esac								esac
                          
                          exit 0								exit 0
                          Moderator
                          BobC

                            I switched the battery in my laptop, and ever since I have lost all current settings on it. It knows how big the battery is in mAh, but doesn’t know how much the battery will hold now when full or its current charge. I have tried 3 different batteries, and none show up correctly, even though all are good. I think reinstalling the OS will fix it, but that seems very harsh. The files showing “no such device” seem to be the problem. I have tried draining it all the way and rebooting, etc, but nothing seems to reset it. tlp recalibrate only works for Thinkpads, it looks, and this is an HP Pavilion dv9917cl. This did work fine initially.

                            Is there some way to reset the value when I swap in a different battery?

                            The battery is full, and although old, will hold the machine for over an hour. All the utilities like conky and xbattbar come up wrong with the similar wrong info as the acpi -bi

                            /sys/class/power_supply/BAT0# acpi -bi
                            Battery 0: Unknown, 0%, rate information unavailable
                            Battery 0: design capacity 6000 mAh, last full capacity -60 mAh = -1%

                            I have done lots of googling and found nothing that worked…

                            Any ideas on things to try?

                            When I run tlp-stat I get this:

                            +++ Battery Status
                            /sys/class/power_supply/BAT0/manufacturer = Hewlett-Packard
                            /sys/class/power_supply/BAT0/model_name = Primary
                            /sys/class/power_supply/BAT0/cycle_count = (not supported)
                            /sys/class/power_supply/BAT0/charge_full_design = 6000 [mAh]
                            /sys/class/power_supply/BAT0/charge_full = (not available)
                            /sys/class/power_supply/BAT0/charge_now = (not available)
                            /sys/class/power_supply/BAT0/current_now = (not available)
                            cat: /sys/class/power_supply/BAT0/charge_full: No such device
                            cat: /sys/class/power_supply/BAT0/charge_now: No such device
                            /sys/class/power_supply/BAT0/status = Unknown

                            inxi -Fzx
                            System: Host: hpdv9917d Kernel: 4.9.0-5-amd64 x86_64 bits: 64 gcc: 6.3.0 Desktop: IceWM 1.4.2
                            Distro: antiX-17_x64-full Heather Heyer 24 October 2017
                            Machine: Device: laptop System: Hewlett-Packard product: HP Pavilion dv9700 Notebook PC v: Rev 1 serial: <filter>
                            Mobo: Quanta model: 30D1 v: 85.26 serial: <filter> BIOS: Hewlett-Packard v: F.30 date: 04/24/2008
                            Battery BAT0: charge: 100% condition: NA/88.8 Wh model: Hewlett-Packard Primary status: N/A
                            CPU: Dual core AMD Turion 64 X2 Mobile TL-62 (-MCP-) arch: K8 rev.F+ cache: 1024 KB
                            flags: (lm nx sse sse2 sse3 svm) bmips: 8401
                            clock speeds: max: 2100 MHz 1: 2100 MHz 2: 2100 MHz
                            Graphics: Card: NVIDIA C67 [GeForce 7150M / nForce 630M] bus-ID: 00:12.0
                            Display Server: X.Org 1.19.2 drivers: nouveau (unloaded: modesetting,fbdev,vesa)
                            Resolution: 1440×900@60.00hz
                            OpenGL: renderer: Gallium 0.4 on NV67 version: 2.1 Mesa 13.0.6 Direct Render: Yes
                            Audio: Card NVIDIA MCP67 High Definition Audio driver: snd_hda_intel bus-ID: 00:07.0
                            Sound: Advanced Linux Sound Architecture v: k4.9.0-5-amd64
                            Network: Card-1: NVIDIA MCP67 Ethernet driver: forcedeth port: 30f8 bus-ID: 00:0a.0
                            IF: eth0 state: dormant speed: 100 Mbps duplex: full mac: <filter>
                            Card-2: Qualcomm Atheros AR242x / AR542x Wireless Network Adapter (PCI-Express)
                            driver: ath5k bus-ID: 03:00.0
                            IF: wlan0 state: down mac: <filter>
                            Drives: HDD Total Size: 532.1GB (5.5% used)
                            ID-1: /dev/sda model: HGST_HTS725050A7 size: 500.1GB
                            ID-2: /dev/sdb model: SanDisk_SSD_U110 size: 32.0GB
                            Partition: ID-1: / size: 15G used: 5.7G (42%) fs: ext4 dev: /dev/sdb5
                            ID-2: swap-1 size: 4.29GB used: 0.46GB (11%) fs: swap dev: /dev/sda12
                            Sensors: System Temperatures: cpu: 67.0C mobo: N/A gpu: 67.0
                            Fan Speeds (in rpm): cpu: N/A
                            Info: Processes: 173 Uptime: 10 days Memory: 1959.1/3704.3MB Init: SysVinit runlevel: 5 Gcc sys: 6.3.0
                            Client: Shell (bash 4.4.121) inxi: 2.3.54

                            • This topic was modified 5 years, 2 months ago by BobC.
                            #7242

                            In reply to: Conky Mods

                            Member
                            sleekmason

                              I’ve been looking into conky more and more! The options seem limitless.
                              Below are all the changes Iv’e made to the existing ~/.conkyrc. (See Screenshot!).

                              Personally, I think it is much more usable now with more info. I cleaned up the code a bit too. Everything uses color2, and so the color can be changed with just the one code change.

                              I also changed in mine up above the TEXT line:

                              # Update interval in seconds
                              update_interval 2

                              From one second.

                              At the bottom of this post is an addition you may want that gives the top (no pun intended) 5 processes for both cpu and memory. Could be useful to some.


                              Anyway, if you would like to try my version, make a back up first in case you decide it was a bad idea;) You may also want to install fortunes, and fortune-mod if you like the cookie at the bottom.
                              In a terminal:
                              cp ~/.conkyrc .conkyrc.bak


                              Then open up ~/.conkyrc with your favorite editor and change everything under “TEXT” with the below. –> Save.

                              ${color2}${alignc}${font DejaVu Sans:size=14}${offset -11}antiX${color2}  |  ${color2}${font DejaVu Sans:size=14}${time %I:%M}
                              ${color2}${font DejaVu Sans:size=10}Uptime: $alignr $uptime
                              $hr
                              ${color2}${font DejaVu Sans:size=9}Repo: $alignr${execi 1000  cat /etc/debian_version}
                              ${color}${font DejaVu Sans:size=9}Kernel: $alignr $kernel
                              
                              ${color2}${font DejaVu Sans:size=9}Total Processes:                $color $processes
                              ${color}Automount: ${alignr}${color2}${execi 60 grep -q "^automount=TRUE" $HOME/.desktop-session/automount.conf 2>/dev/null && echo "enabled" || echo "disabled"}
                              
                              ${color}Freq:${color2}${alignr}${freq}
                              ${color}Cpu:${alignr}${color2}${cpu}${color}%
                              ${cpubar 4}
                              
                              ${color}Ram:${alignr}$mem ${color2}  /${color} $memmax
                              ${membar 4} 
                              ${color}Swap:${alignr}$swap ${color2} /${color} $swapmax
                              ${swapbar 4}
                               
                              Root: $alignr ${fs_used /} / ${fs_size /}
                              ${fs_bar 4 /}
                              Home: $alignr ${fs_used /home} / ${fs_size /home}
                              ${fs_bar 4 /home}
                              ${if_up eth1}${color}Eth0 Up: $alignr${color2} ${upspeed eth0}
                              ${color}$alignr${upspeedgraph   eth0 24,178 5599cc 5599cc}
                              ${color}Eth0 Down: $alignr${color2} ${downspeed eth0}
                              ${color2}$alignr${downspeedgraph eth0 24,178  5599cc 5599cc}${endif}${if_up eth1}
                              ${color}eth1 up: $alignr${color2} ${upspeed eth1}
                              ${color}$alignr${upspeedgraph   eth1 30,170 5599cc 5599cc}
                              ${color}eth1 down: $alignr${color2} ${downspeed eth1}
                              ${color2}$alignr${downspeedgraph eth1 30,170  5599cc 5599cc}${endif}${if_up wlan0}
                              ${color}Wlan0 Up: $alignr${color2} ${upspeed wlan0}
                              ${color2}$alignr${upspeedgraph   wlan0 24,178 5599cc 5599cc}
                              ${color}Wlan0 Down: $alignr${color2} ${downspeed wlan0}
                              ${color2}$alignr${downspeedgraph wlan0 24,178 5599cc 5599cc}${endif}${if_up wlan1}
                              ${color}wlan1 up: $alignr${color2} ${upspeed wlan1}
                              ${color2}$alignr${upspeedgraph   wlan1 24,170 5599cc 5599cc}
                              ${color}wlan1 down: $alignr${color2} ${downspeed wlan1}
                              ${color2}$alignr${downspeedgraph wlan1 24,170 5599cc 5599cc}${endif}
                              Battery Level: ${alignr}$battery_percent%
                              ${battery_bar 4}
                              
                              $alignr${execi 3114 fortune -s | fold -s -w25}
                              ${voffset 800} 

                              This is an addition if you like that will show top processes:

                              ${color2}%CPU
                              $alignr${color2}${offset 11}${top name 1}${top cpu 1}   
                              $alignr${color2}${offset 11}${top name 2}${top cpu 2}   
                              $alignr${color2}${offset 11}${top name 3}${top cpu 3}   
                              $alignr${color2}${offset 11}${top name 4}${top cpu 4}   
                              $alignr${color2}${offset 11}${top name 5}${top cpu 5}   
                                    
                              ${color2}%Memory 
                              $alignr${color2} ${top name 1}${top mem 1}
                              $alignr${color2} ${top name 2}${top mem 2}
                              $alignr${color2} ${top name 3}${top mem 3}
                              $alignr${color2} ${top name 4}${top mem 4}
                              $alignr${color2} ${top name 5}${top mem 5}

                              I had to use offsets on mine. And that goes for all of these I post. Conky is fickle. Sometimes adjustments to the offsets don’t translate well.

                              I might try to get an easy weather report in there too. Maybe just temp and condition.

                              • This reply was modified 5 years, 2 months ago by sleekmason. Reason: changed the color items in the last code
                              Attachments:
                              #7212
                              Member
                              AZgl1800

                                on all of my other Linux and Windows PCs, I am able to Share a folder or the Desktop easily with just a right click, Share, Automatic Read/Write. Linux Mint 18.3 Cinnamon makes this ridiculously simple.

                                but, I am setting up an Itronix GoBook circa 2005 and it is very short on resources and I need a Linux with a very small footprint… so I am using antiX

                                ConnectShares is very convoluted and I cannot figure out how to just make the desktop shared to the network.

                                I put up 100s of pictures a day, and I just use my Android cellphone’s ASUS File Manager app to copy pictures from the phone to any of the other PCs on my WiFi network. I just click on the PC that I want, then Desktop and then SEND.

                                No amount of me messing around with antiX has made this PC visible on the network.

                                
                                John@antix1:~
                                $ inxi -Fxz
                                System:    Host: antix1 Kernel: 4.10.5-antix.1-486-smp i686 bits: 32 gcc: 6.3.0
                                           Desktop: IceWM 1.4.2 Distro: antiX-17_386-full Heather Heyer 24 October 2017
                                Machine:   Device: laptop System: Itronix product: IX260+ serial: N/A
                                           Mobo: IX260+ model: IX260+ v: IX260+ serial: N/A
                                           BIOS: American Megatrends v: Ver.150 date: 05/16/2005
                                CPU:       Single core Intel Pentium M (-UP-) arch: Dothan rev.6 cache: 2048 KB
                                           flags: (sse sse2) bmips: 3572 speed: 1800 MHz (max)
                                Graphics:  Card: Advanced Micro Devices [AMD/ATI] RV250/M9 GL [Mobility FireGL 9000/Radeon 9000]
                                           bus-ID: 01:00.0
                                           Display Server: X.Org 1.19.2
                                           drivers: ati,radeon (unloaded: modesetting,fbdev,vesa)
                                           Resolution: 1024x768@60.00hz
                                           OpenGL: renderer: Mesa DRI R200 (RV250 4C66) x86/MMX/SSE2 DRI2
                                           version: 1.3 Mesa 13.0.6 Direct Render: Yes
                                Audio:     Card Intel 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller
                                           driver: snd_intel8x0 ports: d800 e000 bus-ID: 00:1f.5
                                           Sound: Advanced Linux Sound Architecture v: k4.10.5-antix.1-486-smp
                                Network:   Card-1: Intel PRO/Wireless 2200BG [Calexico2] Network Connection
                                           driver: ipw2200 v: 1.2.2kmprq bus-ID: 02:01.0
                                           IF: eth1 state: up mac: <filter>
                                           Card-2: Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
                                           driver: 8139too v: 0.9.28 port: c800 bus-ID: 02:02.0
                                           IF: eth0 state: down mac: <filter>
                                Drives:    HDD Total Size: 40.0GB (12.7% used)
                                           ID-1: /dev/sda model: HTS424040M9AT00 size: 40.0GB
                                Partition: ID-1: / size: 35G used: 2.9G (9%) fs: ext4 dev: /dev/sda1
                                           ID-2: swap-1 size: 2.15GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
                                Sensors:   System Temperatures: cpu: 59.0C mobo: N/A
                                           Fan Speeds (in rpm): cpu: N/A
                                Info:      Processes: 141 Uptime: 1:58 Memory: 586.8/1002.9MB
                                           Init: SysVinit runlevel: 5 Gcc sys: 6.3.0
                                           Client: Shell (bash 4.4.121) inxi: 2.3.40 
                                John@antix1:~
                                $ 
                                • This topic was modified 5 years, 2 months ago by AZgl1800.
                                • This topic was modified 5 years, 2 months ago by AZgl1800.
                                • This topic was modified 5 years, 2 months ago by AZgl1800.
                                #7082
                                Member
                                seaken64

                                  I fried a Sony Vaio trying to do a BIOS update. I liked that computer. Learned a lesson. Now I just stay with what I got and see if I can make it work. Some things are a little beyond my current skill set, such as diagnosing motherboard problems and soldering in new caps. But I’m good at swapping in parts and running diagnostic software, etc. Linux, in some form, usually works to resurrect on old machine. But some of my really old rigs I can only get DOS or Windows 95/98 to work. Recently got OS/2 onto some 386/486/P-1 machines.

                                  I have several good CRT monitors. Got most of them from when our shop switched out to new LCD screens. Much better use of desk space! But I like the view on the CRT’s and I use them in my lab all the time.

                                  Sean

                                Viewing 15 results - 1,561 through 1,575 (of 1,706 total)