Posts

Installing RHEL/CentOS 7 on Antiquated Hardware RAID

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I'm attempting to install RHEL7 on an old HP ProLiant DL585 G2 server. I boot into the installer through optical media and everything loads correctly as far as I can tell, however the installer does not detect a disk. I suspect this is because the server is using an HP SmartArray P400 hardware raid controller, and the installer doesn't have a driver. Apparently support for these old drivers (CCISS) was discontinued in favor of newer drivers (hpsa) which do not support the P400. This page links to a sourceforge with various drivers as a possible solution, but I'm unsure how to proceed from there, or if it's possible at all. I'm fairly inexperienced even using Linux, let alone administration. Can someone point me in the right direction? Other Considerations I'm trying to mimic an offsite environment that our code will be running on later. The install disk was given to us by the admins of the ...

Reading a certain number of bytes from standard input and then closing the pipe

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I’m trying to read some bytes out of /dev/urandom, keep only the ones I can type easily, and trim the result to 30 characters. I can’t figure out how to get the “only 30 characters” behavior when the data is coming from a pipe, though. I tried cat /dev/urandom | tr -cd 'A-Za-z0-9' | cut -c -30 and cut -c -30 /dev/urandom | tr -cd 'A-Za-z0-9' | cut -c -30 but these hang without displaying anything. On the other hand, cut -c -30 /dev/urandom | tr -cd 'A-Za-z0-9' outputs data endlessly (although it’s clearly been processed by tr because only the specified characters appear in the output). In general, how can I read a certain number of characters (or bytes) from a pipe and then close the pipe? command-line pipe share | improve this question...