• General Linux Chat and Small Questions v. I broke my Arch Install
    6,886 replies, posted
I hop on /g/ when I get bored by all the other places. I browse enough sites that I have to try and expand to other sites, in order to have enough new content to consume. At least /g/'s format keeps shit fresh, so that's good, and they don't take much seriously, so it's a more relaxed environment. (aka it's not reddit)
Anybody got partitioned mtdblock devices working in Qemu?
Harvard / MIT / The Linux Foundation: Will offer free linux introduction online course, this summer usual price: $2,400 Certification of completion for free! Develop a good working knowledge of Linux using both the graphical interface and command line. Covers the three major distribution families. [B]arstechnica article[/B] [url]http://arstechnica.com/information-technology/2014/03/2400-introduction-to-linux-course-will-be-free-and-online-this-summer/[/url] [B]course itself[/B] [url]https://www.edx.org/course/linuxfoundationx/linuxfoundationx-lfs101x-introduction-1621[/url]
[QUOTE=Mega1mpact;44180432]Harvard / MIT / The Linux Foundation: Will offer free linux introduction online course, this summer usual price: $2,400 Certification of completion for free! Develop a good working knowledge of Linux using both the graphical interface and command line. Covers the three major distribution families. [B]arstechnica article[/B] [url]http://arstechnica.com/information-technology/2014/03/2400-introduction-to-linux-course-will-be-free-and-online-this-summer/[/url] [B]course itself[/B] [url]https://www.edx.org/course/linuxfoundationx/linuxfoundationx-lfs101x-introduction-1621[/url][/QUOTE] I will do this once I'm finished with finals, (AKA after april)
It's the linux basics. It's for people who know computers but never used linux
[QUOTE=josm;44170320]Manjaro is based on Arch you see. So if Manjaro will not work, I'm guessing Arch is not going to either.[/QUOTE] The Manjaro page says that one of the differences with Arch is "a simplifed, user-friendly installation process". This is exactly the advantage I am referring to with Arch. Arch's manual installation may let you shake out the problems that Manjaro's simplified installation is choking on.
So I'm trying to build a NAS server running Ubuntu, and essentially all my Linux nightmares come true. "Nothing works". Biggest 2 issues right now are: AMD Catalyst drivers not working, breaking my boot, and Mdadm's raid thinking my array, which works, is degraded...(also config file essentially being empty...)
[QUOTE=Angus725;44187288]So I'm trying to build a NAS server running Ubuntu, and essentially all my Linux nightmares come true. "Nothing works". Biggest 2 issues right now are: AMD Catalyst drivers not working, breaking my boot, and Mdadm's raid thinking my array, which works, is degraded...(also config file essentially being empty...)[/QUOTE] Why are you using a GPU in a NAS server? If you're just going to use it for file storage and media server usage then stick with whatever drivers are preinstalled. Don't install official vendor drivers, just stick with the default Linux kernel modules as much as possible. Also you might want to avoid any RAID systems and use ZFS or Btrfs instead.
Hello, I am trying to install a Gmod Server on my rootserver throught PuTTy right now. I use this tutorial: [url]http://wiki.garrysmod.com/page/Linux_Dedicated_Server_Hosting[/url] I always get the following error with the following command: [code]kilian@Ubuntu-1204-precise-64-minimal:~/bin$ ./steamcmd.sh +login anonymous +quit ./steamcmd.sh: line 29: /home/kilian/bin/linux32/steamcmd: No such file or directory [/code] I can't figure out what the problem is. Right now I am not using the root user, but I already tried it with it. I am not a linux expert so please be patient.
[QUOTE=Tezou;44188795]Hello, I am trying to install a Gmod Server on my rootserver throught PuTTy right now. I use this tutorial: [url]http://wiki.garrysmod.com/page/Linux_Dedicated_Server_Hosting[/url] I always get the following error with the following command: [code]kilian@Ubuntu-1204-precise-64-minimal:~/bin$ ./steamcmd.sh +login anonymous +quit ./steamcmd.sh: line 29: /home/kilian/bin/linux32/steamcmd: No such file or directory [/code] I can't figure out what the problem is. Right now I am not using the root user, but I already tried it with it. I am not a linux expert so please be patient.[/QUOTE] [code]/home/kilian/bin/linux32/steamcmd: No such file or directory[/code] AKA you may have copied that file from some site and they put their steamcmd into a different directory. try this and post the result. Also post the full script. [code]find /home /usr /bin -name steamcmd[/code]
This is what it outputs with your command: [code]/home/banane/linux32/steamcmd /home/kilian/bin/linux32/steamcmd /home/kilian/linux32/steamcmd [/code] And this is the whole code from the start, including the error at the end: [code]gameserver_1@Ubuntu-1204-precise-64-minimal:~$ cd ~ gameserver_1@Ubuntu-1204-precise-64-minimal:~$ mkdir bin gameserver_1@Ubuntu-1204-precise-64-minimal:~$ cd bin gameserver_1@Ubuntu-1204-precise-64-minimal:~/bin$ wget http://media.steampowered.com/client/steamcmd_linux.tar.gz --2014-03-10 10:14:01-- http://media.steampowered.com/client/steamcmd_linux.tar.gz Resolving media.steampowered.com (media.steampowered.com)... 87.248.217.253, 87.248.217.254 Connecting to media.steampowered.com (media.steampowered.com)|87.248.217.253|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3170982 (3.0M) [application/octet-stream] Saving to: `steamcmd_linux.tar.gz' 100%[======================================>] 3,170,982 14.7M/s in 0.2s 2014-03-10 10:14:02 (14.7 MB/s) - `steamcmd_linux.tar.gz' saved [3170982/3170982] gameserver_1@Ubuntu-1204-precise-64-minimal:~/bin$ tar -xvzf steamcmd_linux.tar.gz linux32/ linux32/libstdc++.so.6 linux32/steamcmd steamcmd.sh steam.sh gameserver_1@Ubuntu-1204-precise-64-minimal:~/bin$ ./steamcmd.sh +login anonymous +quit ./steamcmd.sh: line 29: /home/gameserver_1/bin/linux32/steamcmd: No such file or directory [/code] Also this is the reported line 29 in the steamcmd.sh [code] $DEBUGGER "$STEAMROOT/$PLATFORM/$STEAMEXE" "$@"[/code] I don't have steam installed, could this be the problem?
I wasn't sure where to ask this, since it isn't really a Linux-specific thing, yet not related to programming per se either, so here goes. I've got this web interface running on SliTaz where every cgi script is a shell script, allowing configuration to be simple and easy, not to mention vastly extensible. I've run into a problem though, I want to allow for a configuration to be saved. I've written up a configuration file, that the web interface sources upon being run, but I want to be able to save any changed variables. Currently I've got a loop that goes through each variable, but I'm not sure how to work it out. The variable i contains the configuration variable name, and the variable x contains the variable itself, such that [code] # echo "$i=$x" CONF_OUTPUT=/var/www/config [/code] My issue is that the configuration file contains these variables already lined up, and I'd rather not overwrite the entire file but instead replace the variable values with their new values somehow. Any takers?
[QUOTE=Tezou;44188848]This is what it outputs with your command: [code]/home/banane/linux32/steamcmd /home/kilian/bin/linux32/steamcmd /home/kilian/linux32/steamcmd [/code] I don't have steam installed, could this be the problem?[/QUOTE] You don't need steam. Also steam for linux requires a graphical user interface (GUI). [code]ls -lah /home/kilian/bin/linux32/[/code] and post the result Also why are you using a different user for the script now? (gameserver_1 instead of kilian) Can you post the steamcmd script by running this and posting the link it produces? [code]cat steamcmd.sh | curl --data-binary @- nnmm.nl[/code] [editline]10th March 2014[/editline] [QUOTE=mastersrp;44188917]I wasn't sure where to ask this, since it isn't really a Linux-specific thing, yet not related to programming per se either, so here goes. I've got this web interface running on SliTaz where every cgi script is a shell script, allowing configuration to be simple and easy, not to mention vastly extensible. I've run into a problem though, I want to allow for a configuration to be saved. I've written up a configuration file, that the web interface sources upon being run, but I want to be able to save any changed variables. Currently I've got a loop that goes through each variable, but I'm not sure how to work it out. The variable i contains the configuration variable name, and the variable x contains the variable itself, such that [code] # echo "$i=$x" CONF_OUTPUT=/var/www/config [/code] My issue is that the configuration file contains these variables already lined up, and I'd rather not overwrite the entire file but instead replace the variable values with their new values somehow. Any takers?[/QUOTE] What is the file format? And you want to replace certain values in the script and let the rest stay the same?
[QUOTE=Mega1mpact;44188950] What is the file format? And you want to replace certain values in the script and let the rest stay the same?[/QUOTE] Yes, I only want to replace certain values while everything else remains the same. The format is just shell script. I'm using Busybox sh for the shell script support. One such configuration file might be [code] # Store arbitrary files here CONF_DIR="/var/conf/dir" # This is another variable CONF_ANVAR="http://website.com/" # How do you match these up? CONF_MISMATCH="notsureregex" [/code] I've thought about using regex, but I never really understood anything about how to get that done. I tried it for a couple of days of learning, but my brain started to melt and as a result I decided to ask here.
[QUOTE=mastersrp;44188993]I've thought about using regex, but I never really understood anything about how to get that done. I tried it for a couple of days of learning, but my brain started to melt and as a result I decided to ask here.[/QUOTE] I like doing regexes. Give me the script and what you want replaced so I can have a go at it.
[QUOTE=Mega1mpact;44189039]I like doing regexes. Give me the script and what you want replaced so I can have a go at it.[/QUOTE] Well, alright, the essentials are pretty simple: [code] for i in RSS_ITEMNUM RSS_STYLESHEET RSS_OUTPUT RSS_FEEDS RSS_FEEDDIR; do eval x=\$$i [ -n "$x" ] && function_that_replaces_variables end [/code] And configuration file [code] # === Design and layout === # # Number of items to output RSS_ITEMNUM="10" # Stylesheet to use with HTML output RSS_STYLESHEET="" # === Advanced === # # Feeds to fetch and syndicate RSS_FEEDS="http://www.website.com/feed" # Directory to store output feed HTML and RSS RSS_FEEDDIR="/var/www/feeds" # Output file basenmae (no suffixes) RSS_OUTPUT="feed" [/code] [editline]10th March 2014[/editline] It should be noted that the function_that_replaces_variables is just empty, that could essentially be whatever. If replacing the text is a one-liner thing, the function could be replaced with just that.
[QUOTE=Mega1mpact;44188950]You don't need steam. Also steam for linux requires a graphical user interface (GUI).[/QUOTE] That's not Steam, that's SteamCMD, it's the replacement for the srcds download tool thing, it's been out for ages, and it certainly doesn't require a GUI, it's CLI-only. The old tool is deprecated, and I'm fairly sure it doesn't even work anymore.
[QUOTE=nikomo;44189098]That's not Steam, that's SteamCMD, it's the replacement for the srcds download tool thing, it's been out for ages, and it certainly doesn't require a GUI, it's CLI-only. The old tool is deprecated, and I'm fairly sure it doesn't even work anymore.[/QUOTE] I know what it is I've used it before back when it was optional. It was a fucking nightmare to work with (maybe because I still was a linux noob back then). Steam for linux as in the steam library client requires a gui. Xorg be be exact [editline]10th March 2014[/editline] [QUOTE=mastersrp;44189082]Well, alright, the essentials are pretty simple: [code] for i in RSS_ITEMNUM RSS_STYLESHEET RSS_OUTPUT RSS_FEEDS RSS_FEEDDIR; do eval x=\$$i [ -n "$x" ] && function_that_replaces_variables end [/code] And configuration file [editline]10th March 2014[/editline] It should be noted that the function_that_replaces_variables is just empty, that could essentially be whatever. If replacing the text is a one-liner thing, the function could be replaced with just that.[/QUOTE] kinda like this? You could do this with sed [url]http://regex101.com/r/qY5hJ6[/url]
[QUOTE=Tezou;44188795]Hello, I am trying to install a Gmod Server on my rootserver throught PuTTy right now. I use this tutorial: [url]http://wiki.garrysmod.com/page/Linux_Dedicated_Server_Hosting[/url] I always get the following error with the following command: [code]kilian@Ubuntu-1204-precise-64-minimal:~/bin$ ./steamcmd.sh +login anonymous +quit ./steamcmd.sh: line 29: /home/kilian/bin/linux32/steamcmd: No such file or directory [/code] I can't figure out what the problem is. Right now I am not using the root user, but I already tried it with it. I am not a linux expert so please be patient.[/QUOTE] Did you install the 32bit libs? [editline]10th March 2014[/editline] sudo apt-get install ia32-libs
[QUOTE=Mega1mpact;44189111]I know what it is I've used it before back when it was optional. It was a fucking nightmare to work with (maybe because I still was a linux noob back then). Steam for linux as in the steam library client requires a gui. Xorg be be exact [editline]10th March 2014[/editline] kinda like this? You could do this with sed [url]http://regex101.com/r/qY5hJ6[/url][/QUOTE] Thanks a ton, that helped me out immensely!
[QUOTE=Mega1mpact;44188950]You don't need steam. Also steam for linux requires a graphical user interface (GUI). [code]ls -lah /home/kilian/bin/linux32/[/code] and post the result Also why are you using a different user for the script now? (gameserver_1 instead of kilian) Can you post the steamcmd script by running this and posting the link it produces? [code]cat steamcmd.sh | curl --data-binary @- nnmm.nl[/code] [editline]10th March 2014[/editline] What is the file format? And you want to replace certain values in the script and let the rest stay the same?[/QUOTE] Here are the commands, you told me to try and what the terminal outputs: [code]gameserver_1@Ubuntu-1204-precise-64-minimal:~$ ls -lah /home/kilian/bin/linux32/total 9.1M drwxrwxr-x 2 kilian kilian 4.0K Apr 22 2013 . drwxrwxr-x 3 kilian kilian 4.0K Mar 9 22:07 .. -r-xr-xr-x 1 kilian kilian 3.7M Apr 22 2013 libstdc++.so.6 -rwxrw-r-- 1 kilian kilian 5.4M Feb 5 2013 steamcmd gameserver_1@Ubuntu-1204-precise-64-minimal:~$ cat steamcmd.sh | curl --data-binary @- nnmm.nl cat: steamcmd.sh: No such file or directory http://nnmm.nl/?OrlWSgameserver_1@Ubuntu-1204-precise-64-minimal:~$ ^C gameserver_1@Ubuntu-1204-precise-64-minimal:~$ [/code] I was using a other user, because I was trying out something, but I did the same thing at both users. [QUOTE=kaukassus;44191042]Did you install the 32bit libs? [editline]10th March 2014[/editline] sudo apt-get install ia32-libs[/QUOTE] Okay I installed it with your command, but it didn't changed anything at all. Still the same error.
[QUOTE=mastersrp;44188655]Also you might want to avoid any RAID systems and use ZFS or Btrfs instead.[/QUOTE] I'm curious about this, since I'm planning on building a media server/htpc. I was thinking about going with RAID 5 and mdadm. I'm open to Btrfs, but I'm still seeing a lot of stuff about unstable/experimental features.
Okay I fixed it now. I completely reset my rootserver and installed all updates/upgrades, install screen, htop and the 32bit libs, then I run the following commands [code] wget http://media.steampowered.com/client/steamcmd_linux.tar.gz tar xfvz steamcmd_linux.tar.gz rm steamcmd_linux.tar.gz ./steamcmd.sh +login anonymous +force_install_dir gameserver +app_update 4020 validate +quit [/code] It worked. Yooosh!
[QUOTE=Larikang;44191794]I'm curious about this, since I'm planning on building a media server/htpc. I was thinking about going with RAID 5 and mdadm. I'm open to Btrfs, but I'm still seeing a lot of stuff about unstable/experimental features.[/QUOTE] That's why I mentioned ZFS, because that's rock solid as long as you stick with something like version 28 or 5000, whichever is present in your implementation. ZFSOnLinux is 28 right now, and I believe FreeBSD has 5000. Do not be alarmed, these are actually equivalent. The only issue with ZFS is the lack of inclusion into the kernel, but you can still use it outside of the kernel with no issues. The licensing issues merely break legal compability, which means the kernel cannot ship with ZFS on board, so you'll have to install that yourself. ZFS and Btrfs both do roughly the same thing though.
I still choose Ext4 on my filesystems by default. I haven't even tried any other fs except for ext3 when ext4 wasn't around yet. It's not like I can easily switch filesystems on an installed system anyway.
What are the major differences between ext3/4 and ZFS and the like?
[QUOTE=Darkwater124;44192648]What are the major differences between ext3/4 and ZFS and the like?[/QUOTE] ZFS is more of a meta-filesystem, although it functions as a filesystem too. You can add entire disks to a "pool", and have that pool extend to several devices, partitions, or files. A dataset (filesystem mountpoints essentially) only takes up as much space as it needs, and thus you can have a dataset / "partition" mounted in your /var/www directory that can take up as much space as it wants, without taking up a fixed set of space. You can also set a quota on datasets so they cannot take up more than a certain amount of space. Additionally, ZFS has a send/receive function that allows you to stream datasets however you like, in raw unix-friendly ways. One such way could be to zfs send a dataset through the lz4 compressor, send the encrypted data through ssh to another machine, and have that machine receive data, decompress it, and then finally pipe it into zfs receive, thus syncronizing an entire dataset / "partition" across various machines. I'm a big fan.
[QUOTE=FPtje;44192505]I still choose Ext4 on my filesystems by default. I haven't even tried any other fs except for ext3 when ext4 wasn't around yet. It's not like I can easily switch filesystems on an installed system anyway.[/QUOTE] Actually I'm pretty sure you can switch between ext3 and ext4 and from ext4 to btrfs...Not sure about anything else, however.
[QUOTE=Angus725;44187288]So I'm trying to build a NAS server running Ubuntu, and essentially all my Linux nightmares come true. "Nothing works". Biggest 2 issues right now are: AMD Catalyst drivers not working, breaking my boot, and Mdadm's raid thinking my array, which works, is degraded...(also config file essentially being empty...)[/QUOTE] Fixed both. Got Samba working as well. Next steps: Installing VNC, FTP servers.
[QUOTE=mastersrp;44192717]I'm a big fan.[/QUOTE] I'm leaning towards ZFS but it really rubs me the wrong way that the only "easy" way to install it would be to use an unofficial repository. Also I would need to build a custom live image if I wanted to be able to fix anything when my system can't boot. I'm starting to think I'll just stick with ext4 and hope that none of my disks fail before Btrfs becomes more robust.
Sorry, you need to Log In to post a reply to this thread.